keystone: update to 0.9.2, enable python3 bindings

This commit is contained in:
Andrew Benson 2020-05-31 12:18:31 -05:00 committed by Andrew Benson
parent 8c4387c94a
commit f1811c385c
2 changed files with 18 additions and 4 deletions

1
srcpkgs/keystone-python3 Symbolic link
View file

@ -0,0 +1 @@
keystone

View file

@ -1,16 +1,21 @@
# Template file for 'keystone' # Template file for 'keystone'
pkgname=keystone pkgname=keystone
version=0.9.1 version=0.9.2
revision=1 revision=1
build_style=cmake build_style=cmake
configure_args='-DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD=all' 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" short_desc="Lightweight multi-platform, multi-architecture assembler framework"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2" license="GPL-2.0-only"
homepage="http://www.keystone-engine.org/" homepage="http://www.keystone-engine.org/"
distfiles="https://github.com/keystone-engine/keystone/archive/${version}.tar.gz" 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() { keystone-devel_package() {
short_desc+=" - development files" short_desc+=" - development files"
@ -21,3 +26,11 @@ keystone-devel_package() {
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
} }
} }
keystone-python3_package() {
short_desc+=" - Python3 bindings"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "$py3_lib"
}
}