diff options
author | Dobroslaw Kijowski | 2018-11-14 22:40:27 +0100 |
---|---|---|
committer | Dobroslaw Kijowski | 2018-11-14 22:54:56 +0100 |
commit | 51f3c4d365b22ae3709354347c82a822d2d08042 (patch) | |
tree | eed8c76361f21fafff7947e92a5554b7a4f49174 | |
download | aur-51f3c4d365b22ae3709354347c82a822d2d08042.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1f1015e8fc7a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Wed Nov 14 21:54:47 UTC 2018 +pkgbase = lief + pkgdesc = Library to instrument executable formats + pkgver = 0.9.0 + pkgrel = 1 + url = https://lief.quarkslab.com/ + arch = i686 + arch = x86_64 + license = APACHE + makedepends = git + makedepends = cmake + makedepends = python-setuptools + depends = python + source = git+git://github.com/lief-project/LIEF#tag=0.9.0 + md5sums = SKIP + +pkgname = lief + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5ec81dd63675 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Dobroslaw Kijowski [dobo] <dobo90_at_gmail.com> + +pkgname=lief +pkgver=0.9.0 +pkgrel=1 +pkgdesc='Library to instrument executable formats' +arch=(i686 x86_64) +url='https://lief.quarkslab.com/' +license=(APACHE) +depends=(python) +makedepends=(git cmake python-setuptools) +source=("git+git://github.com/lief-project/LIEF#tag=${pkgver}") +md5sums=(SKIP) + +build() { + cd "${srcdir}/LIEF" + + mkdir build + cd build + + cmake -DCMAKE_BUILD_TYPE=Release .. + make + + cd "${srcdir}/LIEF/build/api/python" + python setup.py build +} + +package() { + cd "${srcdir}/LIEF/build" + make DESTDIR="${pkgdir}" install + + cd "${srcdir}/LIEF/build/api/python" + python setup.py install --root="${pkgdir}" --optimize=1 +} |