summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeelzebud2021-08-31 05:42:06 -0500
committerbeelzebud2021-08-31 05:42:06 -0500
commitad840c5b063bb0d2f072a4f8d81b723e9323f2c1 (patch)
treeed40d3f4e46808d483e42b24fdc4fee4da88ce77
parent9c93698a11b21f849287d14b1f6075c1ae0706ba (diff)
downloadaur-vgtranslate-git.tar.gz
fix
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 7 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bbd69891fc6..15f9623409b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = vgtranslate-git
pkgdesc = VgTranslate service for retroarch
- pkgver = r66.1b68c26
+ pkgver = 66.1b68c26
pkgrel = 1
url = http://gitlab.com/spherebeaker/vgtranslate
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 1fb02f16878..721d4226516 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=vgtranslate
pkgname=vgtranslate-git
-pkgver=r66.1b68c26
+pkgver=66.1b68c26
pkgrel=1
pkgdesc="VgTranslate service for retroarch"
arch=('any')
@@ -15,13 +15,14 @@ makedepends=('git' 'python-setuptools' 'python2-setuptools')
source=("$pkgname"::'git+https://gitlab.com/spherebeaker/vgtranslate.git')
md5sums=('SKIP')
-pkgver() {
- cd "$pkgname"
- git describe --long | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
+pkgver()
+{
+ cd $pkgname
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/$pkgname"
+ cd "$pkgname"
python2 setup.py build
}