diff options
author | Eric Waller | 2018-07-20 12:49:53 -0700 |
---|---|---|
committer | Eric Waller | 2018-07-20 12:49:53 -0700 |
commit | a8e80993c06700a57ec70110a64628067af98e06 (patch) | |
tree | e897134d5acae068f92851e42f0a98ab0f0569da | |
parent | 26edb4190efca20a65af874daeec8a5a5c266d15 (diff) | |
download | aur-a8e80993c06700a57ec70110a64628067af98e06.tar.gz |
Added changes to handle git tags.
Fixed unquoted src directory in build
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 11 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = dup.py pkgdesc = Duplicate File manager with multimedia geolocation metadata extensions - pkgver = 1.0 - pkgrel = 3 + pkgver = 1.0.r3.g2b6b18c + pkgrel = 4 url = https://github.com/ewwaller/dup.py arch = any license = GPL3 @@ -1,8 +1,8 @@ # Maintainer: Eric Waller <ewwaller@gmail.com> pkgname=dup.py -pkgver=1.0 -pkgrel=3 +pkgver=1.0.r3.g2b6b18c +pkgrel=4 pkgdesc='Duplicate File manager with multimedia geolocation metadata extensions' arch=('any') url='https://github.com/ewwaller/dup.py' @@ -10,11 +10,16 @@ license=('GPL3') depends=('python' 'sqlite' 'argparser-python') optdepends=('python-argcomplete' 'python-gobject' 'libgexiv2') makedepends=('git') -source=("git+https://github.com/ewwaller/dup.py.git") +source=("git+${url}.git") md5sums=('SKIP') +pkgver() { + cd "${srcdir}/${pkgname%}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + package() { - cd ${srcdir}/${pkgname} + cd "${srcdir}/${pkgname}" install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname} install -Dm644 dup.1.gz ${pkgdir}/usr/share/man/man1/${pkgname}.1.gz } |