diff options
author | Chocobo1 | 2023-04-10 22:07:12 +0800 |
---|---|---|
committer | Chocobo1 | 2023-04-10 22:07:12 +0800 |
commit | 7308dbf2484cfd1da668cb2a9882903e631ab363 (patch) | |
tree | 796102c111c34d37c92208d03de3f0d569c5c7ea /PKGBUILD | |
parent | 0f6335787e424aea8e04682da08ffe32656c5dac (diff) | |
download | aur-7308dbf2484cfd1da668cb2a9882903e631ab363.tar.gz |
upgpkg: gnurl-git 7.72.0.r415.g66cec2eb6-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,15 +1,15 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=gnurl-git -pkgver=7.60.0.r1.g5cf58a8cf +pkgver=7.72.0.r415.g66cec2eb6 pkgrel=1 pkgdesc="gnurl is a fork of curl" arch=('i686' 'x86_64') -url="https://gnunet.org/gnurl" +url="https://www.gnunet.org/en/gnurl.html" license=('MIT') depends=('glibc' 'gnutls' 'krb5' 'libnghttp2' 'libpsl') makedepends=('git') -provides=('gnurl') +provides=("gnurl=$pkgver") conflicts=('gnurl') options=('staticlibs') source=("git+https://git.taler.net/gnurl.git") @@ -19,7 +19,10 @@ sha256sums=('SKIP') pkgver() { cd "gnurl" - git describe --long --tags | sed 's/^gnurl-//;s/\([^-]*-g\)/r\1/;s/-/./g' + _tag=$(git tag -l --sort -v:refname | grep -E '^gnurl-[0-9\.]+$' | head -n1) + _rev=$(git rev-list --count $_tag..HEAD) + _hash=$(git rev-parse --short HEAD) + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^gnurl-//' } build() { @@ -46,5 +49,5 @@ package() { cd "gnurl" make DESTDIR="$pkgdir" install - install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/gnurl/COPYING" + install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/gnurl" } |