blob: c4b840e276ab2daf0d261ccdb180587b9c780e34 (
plain)
1 # Description: Lightweight multi-platform, multi-architecture disassembly framework
2 # URL: https://www.capstone-engine.org/index.html
3 # Maintainer: Alexandr Savca, alexandrsavca89 at gmail dot com
4 # Depends on: python3-setuptools
5
6 name=capstone
7 version=4.0.2
8 release=1
9 source=(https://github.com/aquynh/$name/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 make V=1
15 make DESTDIR=$PKG install
16
17 cd bindings/python
18 python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
19
20 # remove sdist metadata, as wheel metadata will be used with python3-pip
21 rm -r $PKG/usr/lib/python*/site-packages/$name-$version-py*.egg-info
22 }
|