#Automatically generated by pip2arch on 2017-11-21 # Maintainer: oneup pkgname=python2-angr pkgver=7.7.9.21 pkgrel=1 pkgdesc="A multi-architecture binary analysis toolkit, with the ability to perform dynamic symbolic execution and various static analyses on binaries" url="https://github.com/angr/angr" depends=('python2' 'python2-ana' 'python2-archinfo>=7.7.9.14' 'python2-bintrees' 'python2-cachetools' 'python2-capstone' 'python2-cffi>=1.7.0' 'python2-claripy>=7.7.9.14' 'python2-cle>=7.7.9.21' 'python2-cooldict' 'python2-dpkt-fix' 'python2-futures' 'python2-mulpyplexer' 'python2-networkx-1.11' 'python2-progressbar' 'python2-pygit' 'python2-pyvex>=7.7.9.14' 'python2-rpyc' 'python2-unicorn' 'glib2') makedepends=('python2-distribute' ) license=('BSD') arch=('x86_64') source=('https://pypi.python.org/packages/a7/76/837fc44460dadf1682e11d5f76b6b30ae9518b41ebcbb9b67e4019380526/angr-7.7.9.21.tar.gz' 'https://raw.githubusercontent.com/angr/angr/master/LICENSE') md5sums=('ea1fac2e6aa0a77802285612039bcd65' '92da168ebb0065f567f0ea48bed0f512') build() { cd $srcdir/angr-7.7.9.21 for f in $(find . -name "*.py") ; do #bugfix sed -i 's|^#!/usr/bin/python env$|#!/usr/bin/env python|' $f #specfic python version sed -i 's|^#!/usr/bin/env python$|#!/usr/bin/env python2|' $f done python2 setup.py build } package() { cd $srcdir/angr-7.7.9.21 python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 $srcdir/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }