diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f8e022203e40 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-llvmcpy-git + pkgdesc = Python bindings for LLVM auto-generated from the LLVM-C API + pkgver = r13.679d2c1 + pkgrel = 1 + url = https://rev.ng/llvmcpy + arch = any + license = MIT + makedepends = git + depends = python + depends = python-cffi + depends = python-pycparser + depends = llvm + provides = python-llvmcpy + conflicts = python-llvmcpy + replaces = python-llvmcpy + source = git+https://github.com/revng/llvmcpy.git + sha512sums = SKIP + +pkgname = python-llvmcpy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7099bd741b8b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Tommaso Sardelli <lacapannadelloziotom [at] gmail [dot] com> + +pkgname=python-llvmcpy-git +_pkgname=python-llvmcpy +pkgver=r13.679d2c1 +pkgrel=1 +pkgdesc="Python bindings for LLVM auto-generated from the LLVM-C API " +arch=(any) +url="https://rev.ng/llvmcpy" +license=('MIT') +depends=('python' 'python-cffi' 'python-pycparser' 'llvm') +makedepends=("git") +provides=("${_pkgname}") +conflicts=("${_pkgname}") +replaces=("${_pkgname}") +source=("git+https://github.com/revng/llvmcpy.git") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/llvmcpy" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "$srcdir/llvmcpy" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |