vp-build/srcpkgs/keystone/template

37 lines
1002 B
Bash

# Template file for 'keystone'
pkgname=keystone
version=0.9.2
revision=3
build_style=cmake
configure_args='-DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD=all'
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
short_desc="Lightweight multi-platform, multi-architecture assembler framework"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="http://www.keystone-engine.org/"
distfiles="https://github.com/keystone-engine/keystone/archive/${version}.tar.gz"
checksum=c9b3a343ed3e05ee168d29daf89820aff9effb2c74c6803c2d9e21d55b5b7c24
post_install() {
cd bindings/python && DESTDIR=${DESTDIR} make install3
}
keystone-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}
keystone-python3_package() {
short_desc+=" - Python3 bindings"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "$py3_lib"
}
}