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:
4
PKGBUILD
4
PKGBUILD
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user