diff options
author | Christian Hesse | 2023-07-10 09:10:59 +0200 |
---|---|---|
committer | Christian Hesse | 2023-07-10 09:10:59 +0200 |
commit | ff24bf0718c178d796e405a42ae74bfb6edb0aee (patch) | |
tree | 804329da57ee895ad6a1b042f17705e52e3e92cf | |
parent | 06adcd721f9d19ac2eeee3dd942f954b77e8e8ba (diff) | |
download | aur-ff24bf0718c178d796e405a42ae74bfb6edb0aee.tar.gz |
commit nthash-git 0.1.7.r2.g072f080-1
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 16 insertions, 12 deletions
@@ -1,18 +1,17 @@ pkgbase = nthash-git pkgdesc = Generate NT Hash - git checkout - pkgver = 0.1.5.r0.g14083ae + pkgver = 0.1.7.r2.g072f080 pkgrel = 1 url = https://github.com/eworm-de/nthash arch = i686 arch = x86_64 license = GPL makedepends = git - makedepends = markdown + makedepends = discount depends = nettle provides = nthash conflicts = nthash - source = git://github.com/eworm-de/nthash.git + source = git+https://github.com/eworm-de/nthash.git sha256sums = SKIP pkgname = nthash-git - @@ -1,25 +1,31 @@ # Maintainer: Christian Hesse <mail@eworm.de> pkgname=nthash-git -pkgver=0.1.5.r0.g14083ae +pkgver=0.1.7.r2.g072f080 pkgrel=1 -pkgdesc="Generate NT Hash - git checkout" +pkgdesc='Generate NT Hash - git checkout' arch=('i686' 'x86_64') -url="https://github.com/eworm-de/nthash" +url='https://github.com/eworm-de/nthash' conflicts=('nthash') provides=('nthash') depends=('nettle') -makedepends=('git' 'markdown') +makedepends=('git' 'discount') license=('GPL') -source=('git://github.com/eworm-de/nthash.git') +source=('git+https://github.com/eworm-de/nthash.git') +sha256sums=('SKIP') pkgver() { cd nthash/ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then - echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + printf '%s.r%s.g%s' \ + "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \ + "$(git rev-list --count ${GITTAG}..)" \ + "$(git rev-parse --short HEAD)" else - echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + printf '0.r%s.g%s' \ + "$(git rev-list --count master)" \ + "$(git rev-parse --short HEAD)" fi } @@ -41,4 +47,3 @@ package() { make DESTDIR="${pkgdir}" install } -sha256sums=('SKIP') |