mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-28 05:50:31 +01:00
Use revision number instead of tags to get the revision
This commit is contained in:
4
PKGBUILD
4
PKGBUILD
@@ -2,7 +2,7 @@
|
||||
|
||||
_pkgname=plotly.py
|
||||
pkgname=python-plotly
|
||||
pkgver=1.6.12.r715.g20102d6
|
||||
pkgver=r1780.d88c5d0
|
||||
pkgrel=1
|
||||
pkgdesc="An interactive, browser-based charting library for python"
|
||||
arch=('i686' 'x86_64')
|
||||
@@ -15,7 +15,7 @@ md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user