summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlothar-mar2017-01-08 20:11:20 +0000
committerlothar-mar2017-01-08 20:11:20 +0000
commit3fe556eec99a09cb6fdd6c46f5a698453cfb47f9 (patch)
tree9acabb6a213b51cb438f97e3e21c689dac9f5222
parent9f49a4def4fb771b971d484669504468fc14e128 (diff)
downloadaur-3fe556eec99a09cb6fdd6c46f5a698453cfb47f9.tar.gz
updated pkgver function.
-rw-r--r--PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2410eb31aa8..2b0eb18f8bd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=ofxparse
pkgname=$_pkgname-git
-pkgver=0
+pkgver=1
pkgrel=1
pkgdesc="Ofxparse is a parser for Open Financial Exchange (.ofx) format files."
arch=('i686' 'x86_64')
@@ -23,20 +23,20 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
( set -o pipefail
- git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
+ git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
- cd $_pkgname
- python2 setup.py build
+ cd "$srcdir/$_pkgname"
+ python2 setup.py build
}
package() {
- cd $_pkgname
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
- python2 setup.py install --root="$pkgdir" --optimize=1
+ cd "$srcdir/$_pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+ python2 setup.py install --root="$pkgdir" --optimize=1
}