void-packages/srcpkgs/capstone/template
2015-07-16 07:20:18 +02:00

29 lines
786 B
Bash

# Template file for 'capstone'
pkgname=capstone
version=3.0.4
revision=1
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="http://www.capstone-engine.org/download/${version}/${pkgname}-${version}.tgz"
checksum=3e88abdf6899d11897f2e064619edcc731cc8e97e9d4db86495702551bb3ae7f
do_build() {
make V=1 CC=$CC ${makejobs}
}
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install
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
}
}