diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = wllvm-git pkgdesc = A wrapper script to build whole-program LLVM bitcode files - pkgver = r461.6d8955b - pkgrel = 2 + pkgver = r486.c663442 + pkgrel = 1 url = https://github.com/travitch/whole-program-llvm arch = any license = MIT @@ -10,8 +10,7 @@ pkgbase = wllvm-git depends = python provides = wllvm conflicts = wllvm - source = wllvm-git::git+https://github.com/travitch/whole-program-llvm.git + source = wllvm-git::git+https://github.com/travitch/whole-program-llvm md5sums = SKIP pkgname = wllvm-git - @@ -1,8 +1,8 @@ # Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> pkgname=wllvm-git -pkgver=r461.6d8955b -pkgrel=2 +pkgver=r486.c663442 +pkgrel=1 pkgdesc="A wrapper script to build whole-program LLVM bitcode files" arch=('any') url="https://github.com/travitch/whole-program-llvm" @@ -11,12 +11,16 @@ depends=('python') makedepends=('git' 'python-setuptools') provides=('wllvm') conflicts=('wllvm') -source=("$pkgname"::'git+https://github.com/travitch/whole-program-llvm.git') +source=("$pkgname"::'git+https://github.com/travitch/whole-program-llvm') md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" - printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)" + if git describe --long --tags >/dev/null 2>&1; then + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + else + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)" + fi } build() { @@ -26,6 +30,6 @@ build() { package() { cd "$srcdir/$pkgname" - python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |