summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkyechou2020-11-08 22:27:02 -0600
committerkyechou2020-11-08 22:27:02 -0600
commit3afa8352ffc20ae298e4afe414cb16e8a7e866d0 (patch)
treed90587e6e964604ab5924c3e1c6fec7616f7f15c
parent46e663a56b0aeb7760a94b26e2a2e9526b8c321e (diff)
downloadaur-3afa8352ffc20ae298e4afe414cb16e8a7e866d0.tar.gz
Update
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD24
2 files changed, 20 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0826f689d30..091c22612f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = wllvm-git
- pkgdesc = A wrapper script to build whole-program LLVM bitcode files.
- pkgver = r365.189fab4
+ pkgdesc = A wrapper script to build whole-program LLVM bitcode files
+ pkgver = r461.6d8955b
pkgrel = 1
url = https://github.com/travitch/whole-program-llvm
arch = any
license = MIT
makedepends = git
- depends = python3
+ makedepends = python-setuptools
+ depends = python
source = wllvm-git::git+https://github.com/travitch/whole-program-llvm.git
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 0cf0b4c1f43..57f3308b62d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,29 @@
+# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com>
+
pkgname=wllvm-git
-pkgver=r365.189fab4
+pkgver=r461.6d8955b
pkgrel=1
-pkgdesc="A wrapper script to build whole-program LLVM bitcode files."
+pkgdesc="A wrapper script to build whole-program LLVM bitcode files"
arch=('any')
url="https://github.com/travitch/whole-program-llvm"
license=('MIT')
-depends=('python3')
-makedepends=('git')
+depends=('python')
+makedepends=('git' 'python-setuptools')
source=("$pkgname"::'git+https://github.com/travitch/whole-program-llvm.git')
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/$pkgname"
- printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
+ cd "$srcdir/$pkgname"
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ python setup.py build
}
package() {
- cd "$srcdir/$pkgname"
- python3 setup.py install --root="$pkgdir/"
+ cd "$srcdir/$pkgname"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}