aboutsummaryrefslogtreecommitdiffstats
path: root/testing/keystone/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-10-05 10:33:28 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-10-05 10:33:32 +0000
commitca29f3833d6bc6ed00842e8ab373973da18da773 (patch)
treea7215d5c41d718176fca5ac5d274106fc6e90452 /testing/keystone/APKBUILD
parent741855d03fe1bb14e09129850c21b71160f70d25 (diff)
downloadaports-ca29f3833d6bc6ed00842e8ab373973da18da773.tar.bz2
aports-ca29f3833d6bc6ed00842e8ab373973da18da773.tar.xz
testing/keystone: new aport
Diffstat (limited to 'testing/keystone/APKBUILD')
-rw-r--r--testing/keystone/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/keystone/APKBUILD b/testing/keystone/APKBUILD
new file mode 100644
index 0000000000..1297e8eed2
--- /dev/null
+++ b/testing/keystone/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=keystone
+pkgver=0.9.1
+pkgrel=0
+pkgdesc="Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings"
+url="http://www.keystone-engine.org"
+arch="all"
+license="custom"
+depends=""
+makedepends="cmake python3-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-python"
+source="$pkgname-$pkgver.tar.gz::https://github.com/keystone-engine/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ mkdir -p build-shared && cd build-shared
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_SHARED_LIBS=ON \
+ -G "Unix Makefiles" ..
+ cd ..
+ make -C build-shared || return 1
+}
+
+package() {
+ cd "$builddir"
+ make -C build-shared DESTDIR="$pkgdir" install
+}
+
+doc() {
+ pkgdesc="Documentation and samples for $pkgname"
+ arch="noarch"
+ cd "$builddir"
+ mkdir -p "${subpkgdir}/usr/share/doc/${pkgname}"
+ mv samples "${subpkgdir}/usr/share/doc/${pkgname}"
+}
+
+python() {
+ pkgdesc="$pkgname python3 bindings"
+ depends="python3 keystone"
+ arch="noarch"
+ cd "$builddir"/bindings/python
+ python3 setup.py build
+ python3 setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+md5sums="966e0395a3733f68518a2833e64134c1 keystone-0.9.1.tar.gz"
+sha256sums="e9d706cd0c19c49a6524b77db8158449b9c434b415fbf94a073968b68cf8a9f0 keystone-0.9.1.tar.gz"
+sha512sums="3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17 keystone-0.9.1.tar.gz"