summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormewmew2017-08-16 17:59:52 +0200
committermewmew2017-08-16 17:59:52 +0200
commit46e663a56b0aeb7760a94b26e2a2e9526b8c321e (patch)
tree682ddbc3093c244e42c8b8797d02de1fc69c01c3
downloadaur-46e663a56b0aeb7760a94b26e2a2e9526b8c321e.tar.gz
wllvm-git: initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD21
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0826f689d30
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = wllvm-git
+ pkgdesc = A wrapper script to build whole-program LLVM bitcode files.
+ pkgver = r365.189fab4
+ pkgrel = 1
+ url = https://github.com/travitch/whole-program-llvm
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python3
+ source = wllvm-git::git+https://github.com/travitch/whole-program-llvm.git
+ md5sums = SKIP
+
+pkgname = wllvm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0cf0b4c1f43
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,21 @@
+pkgname=wllvm-git
+pkgver=r365.189fab4
+pkgrel=1
+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')
+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)"
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ python3 setup.py install --root="$pkgdir/"
+}