1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-27 13:30:31 +01:00

Use revision number instead of tags to get the revision

This commit is contained in:
Fernando Cladera
2016-04-19 11:42:25 -03:00
parent 8dc439693e
commit 48fb80d650

View File

@@ -2,7 +2,7 @@
_pkgname=plotly.py _pkgname=plotly.py
pkgname=python-plotly pkgname=python-plotly
pkgver=1.6.12.r715.g20102d6 pkgver=r1780.d88c5d0
pkgrel=1 pkgrel=1
pkgdesc="An interactive, browser-based charting library for python" pkgdesc="An interactive, browser-based charting library for python"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
@@ -15,7 +15,7 @@ md5sums=('SKIP')
pkgver() { pkgver() {
cd "$srcdir/$_pkgname" cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
build() { build() {