52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Template file for 'capstone'
|
|
pkgname=capstone
|
|
version=3.0.4
|
|
revision=3
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
short_desc="Lightweight multi-platform, multi-architecture disassembly framework"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="2-clause-BSD"
|
|
homepage="http://www.capstone-engine.org/"
|
|
distfiles="https://github.com/aquynh/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2
|
|
|
|
do_build() {
|
|
make V=1 CC=$CC ${makejobs}
|
|
}
|
|
do_install() {
|
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
make -C bindings/python 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-python_package() {
|
|
short_desc+=" - Python2 bindings"
|
|
pycompile_module="capstone"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/python2*
|
|
vlicense bindings/python/LICENSE.TXT
|
|
}
|
|
}
|
|
|
|
capstone-python3_package() {
|
|
short_desc+=" - Python3 bindings"
|
|
pycompile_module="capstone"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense bindings/python/LICENSE.TXT
|
|
}
|
|
}
|