Date: Saturday, November 9, 2019 @ 00:44:07 Author: arojas Revision: 524764
Drop python2 Modified: keystone/trunk/PKGBUILD ----------+ PKGBUILD | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-11-09 00:40:59 UTC (rev 524763) +++ PKGBUILD 2019-11-09 00:44:07 UTC (rev 524764) @@ -1,7 +1,7 @@ # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> pkgbase=keystone -pkgname=('keystone' 'python-keystone' 'python2-keystone') +pkgname=('keystone' 'python-keystone') pkgver=0.9.1 pkgrel=5 pkgdesc='Lightweight multi-platform, multi-architecture assembler framework' @@ -8,7 +8,7 @@ url='https://www.keystone-engine.org/' arch=('x86_64') license=('GPL2') -makedepends=('cmake' 'gcc-libs' 'python' 'python2') +makedepends=('cmake' 'gcc-libs' 'python') options=('staticlibs' '!emptydirs') source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/keystone-engine/keystone/archive/${pkgver}.tar.gz) sha512sums=('3bd9c3793d5862a0a8628b52da381625e62445f661dbd5ed715723e7d9db01ce3f9586e5ca0a5cc71e8ceb6c912050f5c28e3ccd540e72c8abcfd2f0d1bbae17') @@ -30,8 +30,6 @@ -DLLVM_TARGETS_TO_BUILD=all \ -G "Unix Makefiles" .. ) - cp -ra bindings/python{,2} - sed -r 's|(python)$|\12|' -i bindings/python2/sample.py } build() { @@ -38,12 +36,8 @@ cd ${pkgbase}-${pkgver} make -C build-shared make -C build-static - (cd bindings/python - python setup.py build - ) - (cd bindings/python2 - python2 setup.py build - ) + cd bindings/python + python setup.py build } package_keystone() { @@ -63,13 +57,4 @@ install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } -package_python2-keystone() { - depends=('python2' 'keystone') - license=('BSD') - cd ${pkgbase}-${pkgver}/bindings/python2 - python2 setup.py install --root="${pkgdir}" -O1 --skip-build - install -Dm 755 sample.py -t "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm 644 LICENSE.TXT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" -} - # vim: ts=2 sw=2 et: