40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'capstone'
|
|
pkgname=capstone
|
|
version=4.0.2
|
|
revision=4
|
|
build_style=gnu-makefile
|
|
make_use_env=1
|
|
hostmakedepends="python3-setuptools"
|
|
short_desc="Lightweight multi-platform, multi-architecture disassembly framework"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://www.capstone-engine.org/"
|
|
distfiles="https://github.com/aquynh/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=7c81d798022f81e7507f1a60d6817f63aa76e489aa4e7055255f21a22f5e526a
|
|
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
make -C bindings/python PREFIX=/usr DESTDIR=${DESTDIR} install3
|
|
vlicense LICENSE.TXT LICENSE
|
|
}
|
|
|
|
capstone-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/*.a
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
capstone-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
depends="${sourcepkg}>=${version}_${revision} python3"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense bindings/python/LICENSE.TXT
|
|
}
|
|
}
|