capstone: Add python bindings (#8795)
This commit is contained in:
parent
e8d30beab8
commit
ee88814e28
3 changed files with 26 additions and 1 deletions
1
srcpkgs/capstone-python
Symbolic link
1
srcpkgs/capstone-python
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
capstone
|
1
srcpkgs/capstone-python3
Symbolic link
1
srcpkgs/capstone-python3
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
capstone
|
|
@ -1,7 +1,8 @@
|
||||||
# Template file for 'capstone'
|
# Template file for 'capstone'
|
||||||
pkgname=capstone
|
pkgname=capstone
|
||||||
version=3.0.4
|
version=3.0.4
|
||||||
revision=2
|
revision=3
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
short_desc="Lightweight multi-platform, multi-architecture disassembly framework"
|
short_desc="Lightweight multi-platform, multi-architecture disassembly framework"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
license="2-clause-BSD"
|
license="2-clause-BSD"
|
||||||
|
@ -14,6 +15,8 @@ do_build() {
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
make PREFIX=/usr DESTDIR=${DESTDIR} 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
|
vlicense LICENSE.TXT LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,3 +30,23 @@ capstone-devel_package() {
|
||||||
vmove usr/lib/pkgconfig
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue