diff options
author | Chocobo1 | 2023-04-11 15:37:53 +0800 |
---|---|---|
committer | Chocobo1 | 2023-04-11 15:38:13 +0800 |
commit | 6ded9ac3baebe98524983746bc040c928310f0eb (patch) | |
tree | c22e722e0aa639c224d81a1d6e0216131d353e58 /PKGBUILD | |
parent | 02c003f74de0e83750a514f5fa9d53571d5e3dda (diff) | |
download | aur-libidn2-git.tar.gz |
upgpkg: libidn2-git 2.3.4.r3.gecdf251-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=libidn2-git -pkgver=2.3.0.r26.g985686b +pkgver=2.3.4.r3.gecdf251 pkgrel=1 pkgdesc="An implementation of IDNA 2008 and TR46" arch=('i686' 'x86_64') @@ -9,7 +9,7 @@ url="https://www.gnu.org/software/libidn/#libidn2" license=('GPL' 'LGPL') depends=('glibc' 'libunistring') makedepends=('git' 'gengetopt' 'rsync' 'wget' 'gtk-doc' 'ruby-ronn') -provides=('libidn2' 'libidn2.so') +provides=("libidn2=$pkgver" 'libidn2.so') conflicts=('libidn2') options=('staticlibs') source=("git+https://gitlab.com/libidn/libidn2.git") @@ -19,7 +19,10 @@ sha256sums=('SKIP') pkgver() { cd "libidn2" - git describe --long --tags | sed 's/^libidn2.//;s/\([^-]*-g\)/r\1/;s/-/./g' + _tag=$(git tag -l --sort -v:refname | grep -E '^v?[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/^v//' } build() { |