diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 7 insertions, 7 deletions
@@ -1,6 +1,6 @@ pkgbase = enet-git pkgdesc = A thin, simple and robust network communication layer on top of UDP - pkgver = r254.g0eaf48e + pkgver = 1.3.17.r29.gea4607a pkgrel = 1 url = http://enet.bespin.org/ arch = i686 @@ -8,11 +8,10 @@ pkgbase = enet-git license = MIT makedepends = git depends = glibc - provides = enet + provides = enet=1.3.17.r29.gea4607a conflicts = enet options = staticlibs source = git+https://github.com/lsalzman/enet.git sha256sums = SKIP pkgname = enet-git - @@ -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() { |