indicator-kdeconnect-git/PKGBUILD

45 lines
1.2 KiB
Bash
Raw Permalink Normal View History

# Maintainer: Sebastian Gumprich <aur at gumpri dot ch>
2016-08-30 00:33:54 +09:00
# Contributor: shimi <shimi.chen@gmail.com>
2015-08-12 04:43:47 +09:00
# Contributor: Gustavo Castro <gustawho at gmail dot com>
pkgname=indicator-kdeconnect-git
2021-03-03 16:28:15 +09:00
pkgver=r625.669bdd5
pkgrel=1
2015-08-12 04:43:47 +09:00
_gitname=indicator-kdeconnect
pkgdesc="Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)"
2024-09-28 12:59:46 +09:00
arch=('x86_64')
2021-03-03 16:28:15 +09:00
url="https://github.com/b4j4/indicator-kdeconnect"
2015-08-12 04:43:47 +09:00
license=('GPL')
2017-04-19 02:32:34 +09:00
conflicts=('indicator-kdeconnect')
provides=('indicator-kdeconnect')
2018-11-16 05:00:06 +09:00
depends=('libappindicator-gtk3' 'kdeconnect' 'vala' 'python-requests-oauthlib' 'python-gobject' 'libgee')
makedepends=('git' 'meson' 'ninja')
2021-03-03 16:28:15 +09:00
source=(
'git+https://github.com/bajoja/indicator-kdeconnect.git'
'fix-build.patch'
)
sha256sums=(
'SKIP'
'b79c5b3b3cda6b7e9e329ae1ea080f8750dde64025090b9cb534efb7a2c0f537'
)
2015-08-12 04:43:47 +09:00
pkgver() {
cd $_gitname
2017-04-18 06:12:34 +09:00
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
2015-08-12 04:43:47 +09:00
}
2021-03-03 16:28:15 +09:00
prepare() {
cd "$_gitname"
patch --forward --strip=1 --input="${srcdir}/fix-build.patch"
}
2018-11-19 03:19:50 +09:00
build() {
mkdir build && cd build
meson ../$_gitname --prefix=/usr --libdir=/usr/lib
ninja
}
2015-08-12 04:43:47 +09:00
package() {
cd build
2018-11-19 03:19:50 +09:00
DESTDIR=$pkgdir ninja install
2015-08-12 04:43:47 +09:00
}