diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=enet-git -pkgver=r254.g0eaf48e +pkgver=1.3.17.r29.gea4607a pkgrel=1 pkgdesc="A thin, simple and robust network communication layer on top of UDP" arch=('i686' 'x86_64') @@ -9,7 +9,7 @@ url="http://enet.bespin.org/" license=('MIT') depends=('glibc') makedepends=('git') -provides=('enet') +provides=("enet=$pkgver") conflicts=('enet') options=('staticlibs') source=("git+https://github.com/lsalzman/enet.git") @@ -19,9 +19,10 @@ sha256sums=('SKIP') pkgver() { cd "enet" - _rev=$(git rev-list --count --all) + _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 "r%s.g%s" "$_rev" "$_hash" + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//' } build() { |