summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederik Schwan2020-05-17 04:51:13 +0200
committerFrederik Schwan2020-05-17 04:51:13 +0200
commitb83dc3f0bc5aa40608191044e14688adc7f5f4c5 (patch)
tree7b4814ce97d2b9a06f931ffd7bf85578c3be5b23
parent3434cf391b941afd9d7c54dd827b631028b37c1a (diff)
downloadaur-b83dc3f0bc5aa40608191044e14688adc7f5f4c5.tar.gz
review by anthraxx
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD12
2 files changed, 9 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a9a377c1595..4c4cf216d21 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = xfce-polkit-git
pkgdesc = A simple PolicyKit authentication agent for XFCE
- pkgver = 27.89bab1e
+ pkgver = 0.3.r1.g89bab1e
pkgrel = 1
url = https://github.com/ncopa/xfce-polkit
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index cbffbdc2698..92e61a1e525 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=xfce-polkit
pkgname=${_pkgname}-git
-pkgver=27.89bab1e
+pkgver=0.3.r1.g89bab1e
pkgrel=1
pkgdesc='A simple PolicyKit authentication agent for XFCE'
arch=('x86_64' 'i686')
@@ -13,22 +13,26 @@ depends=('polkit' 'libxfce4ui')
makedepends=('git')
provides=("${_pkgname}" "polkit-gnome")
conflicts=("${_pkgname}" "polkit-gnome")
-source=("git+$url"
+source=("git+https://github.com/ncopa/xfce-polkit"
xfce-polkit.desktop)
b2sums=('SKIP'
'c4f811e62e3a002ab8a00ccea26a9ce41db5f9ce0c0584adaa305ee9d9dc26199c00967461d5ca92f2a63387783f6a9473ad279bc45214e75b255dbbb0d87e60')
pkgver() {
cd ${_pkgname}
- echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ echo $(git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
}
-build() {
+prepare() {
cd ${_pkgname}
aclocal
autoconf
automake --add-missing
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+}
+
+build() {
+ cd ${_pkgname}
make
}