From 5b2b8463aa453679f0b104d018354a4fbee3b6b9 Mon Sep 17 00:00:00 2001 From: Sebastian Gumprich Date: Sun, 18 Nov 2018 19:19:50 +0100 Subject: [PATCH] improve script --- .SRCINFO | 4 ++-- PKGBUILD | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index d382435..eacbfbb 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = indicator-kdeconnect-git pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity) pkgver = r599.070ebaa - pkgrel = 1 + pkgrel = 2 url = https://github.com/bajoja/indicator-kdeconnect arch = any license = GPL @@ -16,7 +16,7 @@ pkgbase = indicator-kdeconnect-git depends = libgee provides = indicator-kdeconnect conflicts = indicator-kdeconnect - source = git://github.com/bajoja/indicator-kdeconnect.git + source = git+https://github.com/bajoja/indicator-kdeconnect.git md5sums = SKIP pkgname = indicator-kdeconnect-git diff --git a/PKGBUILD b/PKGBUILD index 4d5517b..0006188 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -3,7 +3,7 @@ # Contributor: Gustavo Castro pkgname=indicator-kdeconnect-git pkgver=r599.070ebaa -pkgrel=1 +pkgrel=2 _gitname=indicator-kdeconnect pkgdesc="Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)" arch=('any') @@ -13,7 +13,7 @@ conflicts=('indicator-kdeconnect') provides=('indicator-kdeconnect') depends=('libappindicator-gtk3' 'kdeconnect' 'vala' 'python-requests-oauthlib' 'python-gobject' 'libgee') makedepends=('git' 'meson' 'ninja') -source=('git://github.com/bajoja/indicator-kdeconnect.git') +source=('git+https://github.com/bajoja/indicator-kdeconnect.git') md5sums=('SKIP') pkgver() { @@ -21,11 +21,13 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -package() { - cd indicator-kdeconnect - mkdir build - cd build - meson .. --prefix=/usr/ --libdir=/usr/lib/ +build() { + mkdir build && cd build + meson ../$_gitname --prefix=/usr --libdir=/usr/lib ninja - ninja install +} + +package() { + cd build + DESTDIR=$pkgdir ninja install }