diff --git a/srcpkgs/keystone-python3 b/srcpkgs/keystone-python3 new file mode 120000 index 0000000000..54e10b1b46 --- /dev/null +++ b/srcpkgs/keystone-python3 @@ -0,0 +1 @@ +keystone \ No newline at end of file diff --git a/srcpkgs/keystone/template b/srcpkgs/keystone/template index 9615d6bbb0..fd1dd28589 100644 --- a/srcpkgs/keystone/template +++ b/srcpkgs/keystone/template @@ -1,16 +1,21 @@ # Template file for 'keystone' pkgname=keystone -version=0.9.1 +version=0.9.2 revision=1 build_style=cmake configure_args='-DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD=all' -hostmakedepends="python" +hostmakedepends="python3-setuptools" +makedepends="python3-devel" short_desc="Lightweight multi-platform, multi-architecture assembler framework" maintainer="Orphaned " -license="GPL-2" +license="GPL-2.0-only" homepage="http://www.keystone-engine.org/" distfiles="https://github.com/keystone-engine/keystone/archive/${version}.tar.gz" -checksum=e9d706cd0c19c49a6524b77db8158449b9c434b415fbf94a073968b68cf8a9f0 +checksum=c9b3a343ed3e05ee168d29daf89820aff9effb2c74c6803c2d9e21d55b5b7c24 + +post_install() { + cd bindings/python && DESTDIR=${DESTDIR} make install3 +} keystone-devel_package() { short_desc+=" - development files" @@ -21,3 +26,11 @@ keystone-devel_package() { vmove usr/lib/pkgconfig } } + +keystone-python3_package() { + short_desc+=" - Python3 bindings" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove "$py3_lib" + } +}