summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Gumprich2017-07-19 21:02:08 +0200
committerSebastian Gumprich2017-07-19 21:02:08 +0200
commit81697add423ffdd0036c5d69057e19bc3bdfb3b3 (patch)
tree2a8274bd5afa6151a2d5c1fe26ee83ecef416ef0
parentd75c21c6e8b26b5539bade0e3cbc7d6d483d0405 (diff)
downloadaur-81697add423ffdd0036c5d69057e19bc3bdfb3b3.tar.gz
revamp pkgbuild
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD28
2 files changed, 18 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 03cc6ed13bd..6988d5ca1a0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = indicator-kdeconnect
pkgdesc = Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)
- pkgver = 0.9.1.r0.gfe9624b
+ pkgver = 0.9.1
pkgrel = 1
+ epoch = 1
url = https://github.com/bajoja/indicator-kdeconnect
arch = any
license = GPL
- makedepends = git
makedepends = cmake
depends = libappindicator-gtk3
depends = kdeconnect
@@ -13,8 +13,8 @@ pkgbase = indicator-kdeconnect
depends = python-requests-oauthlib
depends = python-gobject
conflicts = indicator-kdeconnect-git
- source = git://github.com/bajoja/indicator-kdeconnect.git
- md5sums = SKIP
+ source = indicator-kdeconnect-0.9.1.tar.gz::https://github.com/Bajoja/indicator-kdeconnect/archive/0.9.1.tar.gz
+ sha256sums = 9263239df0b1300e93d25a64a2f8972487aa6047c99318b31de6b1973a0760bd
pkgname = indicator-kdeconnect
diff --git a/PKGBUILD b/PKGBUILD
index cabf2dc03b1..68e08986d3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,30 +1,30 @@
# Maintainer: Sebastian Gumprich <aur at gumpri dot ch>
+# Contributor: twa022
# Contributor: shimi <shimi.chen@gmail.com>
# Contributor: Gustavo Castro <gustawho at gmail dot com>
pkgname=indicator-kdeconnect
-pkgver=0.9.1.r0.gfe9624b
+epoch=1
+pkgver=0.9.1
pkgrel=1
-_gitname=indicator-kdeconnect
pkgdesc="Integrate KDEConnect on desktop environments that use AppIndicators (e.g. Unity)"
arch=('any')
url="https://github.com/bajoja/indicator-kdeconnect"
license=('GPL')
-conflicts=('indicator-kdeconnect-git')
+conflicts=("${pkgname}-git")
depends=('libappindicator-gtk3' 'kdeconnect' 'vala' 'python-requests-oauthlib' 'python-gobject')
-makedepends=('git' 'cmake')
-source=('git://github.com/bajoja/indicator-kdeconnect.git')
-md5sums=('SKIP')
+makedepends=('cmake')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Bajoja/indicator-kdeconnect/archive/${pkgver}.tar.gz")
+sha256sums=('9263239df0b1300e93d25a64a2f8972487aa6047c99318b31de6b1973a0760bd')
-pkgver() {
- cd $_gitname
- git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-package() {
- cd indicator-kdeconnect
- mkdir build
+build() {
+ cd "${pkgname}-${pkgver}"
+ [ ! -d build ] && mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"/build
make DESTDIR="${pkgdir}" install
}