Commit 2dc65649 authored by Sören Tempel's avatar Sören Tempel

testing/capstone: add python subpackages

parent 1d809de8
......@@ -2,16 +2,16 @@
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=capstone
pkgver=3.0.4
pkgrel=2
pkgrel=3
pkgdesc="The Ultimate Disassembler"
url="http://www.capstone-engine.org"
arch="all"
license="BSD-3-Clause-Clear"
depends=""
depends_dev="$pkgname"
makedepends="cmake"
makedepends="cmake python2-dev python3-dev py-setuptools"
install=""
subpackages="$pkgname-dev"
subpackages="$pkgname-dev py2-${pkgname}:_py2:noarch py3-${pkgname}:_py3:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/aquynh/$pkgname/archive/$pkgver.tar.gz
$pkgname.pc"
builddir="$srcdir"/$pkgname-$pkgver
......@@ -42,5 +42,22 @@ package() {
"$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
}
_py2() {
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir/bindings/python"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d capstone-3.0.4.tar.gz
87eacef80df36be18fe86f540a452b7e290c9dfc85d01c7926d263f2e5060f6d5fd6a6c68c350caf532f4926902a77fba24e59cb5e9b606be9706980ae4c8235 capstone.pc"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment