diff options
author | Richard Davis | 2022-08-18 00:26:02 -0400 |
---|---|---|
committer | Richard Davis | 2022-08-18 00:26:02 -0400 |
commit | 2415d0f553f57cd9f9fe4a96e7702d7c8e1daa54 (patch) | |
tree | 9a5a1fa20e9e2134c041f3c71a9ca15d49030429 | |
parent | d3ffa48d9c06afacd50458e9e11ba2c106393bd1 (diff) | |
download | aur-2415d0f553f57cd9f9fe4a96e7702d7c8e1daa54.tar.gz |
Adding pkgver() function.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = xsudo-git pkgdesc = A script to run GUI applications with pkexec - pkgver = 1.0 + pkgver = v1.0_1_gbf7d6a8 pkgrel = 1 url = https://gitlab.com/davisrichard437/xsudo arch = any @@ -9,7 +9,7 @@ pkgbase = xsudo-git depends = bash depends = polkit depends = coreutils - source = git+https://gitlab.com/davisrichard437/xsudo.git + source = xsudo::git+https://gitlab.com/davisrichard437/xsudo.git sha256sums = SKIP pkgname = xsudo-git @@ -1,6 +1,6 @@ # Maintainer: Richard Davis < davisrichard437 at gmail dot com > pkgname='xsudo-git' -pkgver=1.0 +pkgver=v1.0_1_gbf7d6a8 pkgrel=1 pkgdesc='A script to run GUI applications with pkexec' arch=('any') @@ -8,7 +8,7 @@ url='https://gitlab.com/davisrichard437/xsudo' license=('MIT') depends=('bash' 'polkit' 'coreutils') makedepends=('git') -source=('git+https://gitlab.com/davisrichard437/xsudo.git') +source=('xsudo::git+https://gitlab.com/davisrichard437/xsudo.git') sha256sums=('SKIP') prepare() { @@ -16,6 +16,11 @@ prepare() { sed -i 's/pkgname=xsudo/pkgname=xsudo-git/g' ./Makefile } +pkgver() { + cd "$srcdir/xsudo/" + git describe | sed 's/-/_/g' +} + package() { cd "$srcdir/xsudo/" make DESTDIR="$pkgdir" PREFIX="/usr/" install |