summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12020-06-04 16:05:42 +0800
committerChocobo12020-06-04 16:05:42 +0800
commit614e8183b127cc29f7d988719cab8f592dea708c (patch)
tree79876dbd2f5d78adcf90041fedbdeb3138a1c2ae
parent1acbd767b91c644f73bcd4bed034329acf4ba648 (diff)
downloadaur-614e8183b127cc29f7d988719cab8f592dea708c.tar.gz
upgpkg: libtorrent-rasterbar-1_2-git r16175.g0712c43c6-1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e1be963c12b..e1159c315c8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = libtorrent-rasterbar-1_2-git
pkgdesc = A feature complete C++ bittorrent library (git branch RC_1_2)
- pkgver = 1.2.5.r4.g3b6ab35ae
+ pkgver = r16175.g0712c43c6
pkgrel = 1
url = https://www.libtorrent.org/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index ee4e11bb492..0479805305d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=libtorrent-rasterbar-1_2-git
-pkgver=1.2.5.r4.g3b6ab35ae
+pkgver=r16175.g0712c43c6
pkgrel=1
pkgdesc="A feature complete C++ bittorrent library (git branch RC_1_2)"
arch=('i686' 'x86_64')
@@ -19,7 +19,9 @@ sha256sums=('SKIP')
pkgver() {
cd "libtorrent"
- git describe --long --tags | sed 's/^[A-Za-z]*[-_]//;s/\([^-]*-g\)/r\1/;s/[_-]/./g'
+ _rev=$(git rev-list --count --all)
+ _hash=$(git rev-parse --short HEAD)
+ printf "r%s.g%s" "$_rev" "$_hash"
}
build() {