Date: Tuesday, January 22, 2019 @ 23:38:20 Author: anthraxx Revision: 427058
archrelease: copy trunk to community-staging-x86_64 Added: capstone/repos/community-staging-x86_64/ capstone/repos/community-staging-x86_64/PKGBUILD (from rev 427057, capstone/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: capstone/repos/community-staging-x86_64/PKGBUILD (from rev 427057, capstone/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-01-22 23:38:20 UTC (rev 427058) @@ -0,0 +1,46 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: M0Rf30 + +pkgbase=capstone +pkgname=('capstone' 'python-capstone' 'python2-capstone') +pkgver=4.0.1 +pkgrel=1 +pkgdesc='Lightweight multi-platform, multi-architecture disassembly framework' +url='https://www.capstone-engine.org/index.html' +arch=('x86_64') +license=('BSD') +makedepends=('glibc' 'python' 'python-setuptools' 'python2' 'python2-setuptools') +options=('staticlibs') +source=(${pkgname}-${pkgver}.tar.gz::https://github.com/aquynh/capstone/archive/${pkgver}.tar.gz) +sha256sums=('79bbea8dbe466bd7d051e037db5961fdb34f67c9fac5c3471dd105cfb1e05dc7') +sha512sums=('43c52024065b41b45eff9423341db3f3d5163fa7aa01b360faa30437786740c8f2c34c36faa04dced5308e09d8bd78df3bad0ab9c06f98612169edb176f83c36') + +build() { + cd ${pkgbase}-${pkgver} + make +} + +package_capstone() { + depends=('glibc') + provides=('libcapstone.so') + cd ${pkgbase}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm 644 docs/README -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 LICENSE.TXT -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_python-capstone() { + depends=('capstone' 'python') + cd ${pkgbase}-${pkgver}/bindings/python + python setup.py install -O1 --root="${pkgdir}" --prefix=/usr + install -Dm 644 ../../LICENSE.TXT -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +package_python2-capstone() { + depends=('capstone' 'python2') + cd ${pkgbase}-${pkgver}/bindings/python + python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr + install -Dm 644 ../../LICENSE.TXT -t "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim: ts=2 sw=2 et: