summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsasvari2017-07-05 15:20:31 +0200
committersasvari2017-07-05 15:20:31 +0200
commit2f64a872ffbdca9fe850e5dbba185fa096a524f9 (patch)
tree5fa069bf9dcf878b0dec0b7086b8d7439acb527c /PKGBUILD
parent3f3aea7ba2ca81da976ae87fc6eb868f0100ecee (diff)
downloadaur-2f64a872ffbdca9fe850e5dbba185fa096a524f9.tar.gz
fix pkgname and change version schema
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 8 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7b2fdded850..ebc329e3eba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: sasvari
-pkgname="pubs-git"
-pkgver=d7e25d0
+pkg="pubs"
+pkgname="$pkg-git"
+pkgver=20170524.d7e25d0
pkgrel=1
pkgdesc="Your bibliography on the command line"
arch=(any)
@@ -11,18 +12,19 @@ provides=("pubs")
source=("git+https://github.com/pubs/pubs.git")
pkgver() {
- cd "$srcdir/$pkgname"
+ cd "$srcdir/$pkg"
#git describe | sed 's/^v//; s/-/.r/; s/-/./'
- git rev-parse --short HEAD
+ #git rev-parse --short HEAD
+ git log -1 --format=%cd.%h --date=short|tr -d -
}
build () {
- cd "$srcdir/$pkgname"
+ cd "$srcdir/$pkg"
python setup.py build
}
package() {
- cd "$srcdir/$pkgname"
+ cd "$srcdir/$pkg"
python setup.py install --root="$pkgdir/" --prefix="/usr"
}
md5sums=('SKIP')