improve script

This commit is contained in:
Sebastian Gumprich 2018-11-18 19:19:50 +01:00
parent 51081c2a65
commit 5b2b8463aa
2 changed files with 12 additions and 10 deletions

View File

@ -1,7 +1,7 @@
pkgbase = indicator-kdeconnect-git pkgbase = indicator-kdeconnect-git
pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity) pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)
pkgver = r599.070ebaa pkgver = r599.070ebaa
pkgrel = 1 pkgrel = 2
url = https://github.com/bajoja/indicator-kdeconnect url = https://github.com/bajoja/indicator-kdeconnect
arch = any arch = any
license = GPL license = GPL
@ -16,7 +16,7 @@ pkgbase = indicator-kdeconnect-git
depends = libgee depends = libgee
provides = indicator-kdeconnect provides = indicator-kdeconnect
conflicts = indicator-kdeconnect conflicts = indicator-kdeconnect
source = git://github.com/bajoja/indicator-kdeconnect.git source = git+https://github.com/bajoja/indicator-kdeconnect.git
md5sums = SKIP md5sums = SKIP
pkgname = indicator-kdeconnect-git pkgname = indicator-kdeconnect-git

View File

@ -3,7 +3,7 @@
# Contributor: Gustavo Castro <gustawho at gmail dot com> # Contributor: Gustavo Castro <gustawho at gmail dot com>
pkgname=indicator-kdeconnect-git pkgname=indicator-kdeconnect-git
pkgver=r599.070ebaa pkgver=r599.070ebaa
pkgrel=1 pkgrel=2
_gitname=indicator-kdeconnect _gitname=indicator-kdeconnect
pkgdesc="Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)" pkgdesc="Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)"
arch=('any') arch=('any')
@ -13,7 +13,7 @@ conflicts=('indicator-kdeconnect')
provides=('indicator-kdeconnect') provides=('indicator-kdeconnect')
depends=('libappindicator-gtk3' 'kdeconnect' 'vala' 'python-requests-oauthlib' 'python-gobject' 'libgee') depends=('libappindicator-gtk3' 'kdeconnect' 'vala' 'python-requests-oauthlib' 'python-gobject' 'libgee')
makedepends=('git' 'meson' 'ninja') makedepends=('git' 'meson' 'ninja')
source=('git://github.com/bajoja/indicator-kdeconnect.git') source=('git+https://github.com/bajoja/indicator-kdeconnect.git')
md5sums=('SKIP') md5sums=('SKIP')
pkgver() { pkgver() {
@ -21,11 +21,13 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
package() { build() {
cd indicator-kdeconnect mkdir build && cd build
mkdir build meson ../$_gitname --prefix=/usr --libdir=/usr/lib
cd build
meson .. --prefix=/usr/ --libdir=/usr/lib/
ninja ninja
ninja install }
package() {
cd build
DESTDIR=$pkgdir ninja install
} }