Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (37 sloc) 1.56 KB
# Maintainer: ArchStrike <team archstrike org>
buildarch=196
pkgname=pwntools
pkgver=3.13.0
pkgrel=1
pkgdesc='CTF framework and exploit development library'
arch=('armv7' 'i686' 'x86_64')
url='https://github.com/Gallopsled/pwntools'
license=('MIT')
groups=('archstrike' 'archstrike-exploit' 'archstrike-misc')
depends_x86_64+=('lib32-glibc')
depends=('python2-dateutil' 'python2-paramiko' 'python2-mako' 'python2-pyelftools' 'capstone' 'ropgadget' 'python2-pyserial'
'python2-requests' 'python2-pygments' 'python2-pysocks' 'python2-tox' 'python2-pip' 'python2-psutil' 'python2-unicorn'
'python2-intervaltree' 'python2-pypandoc' 'python2-sortedcontainers')
makedepends=('python2-setuptools')
replaces=('binjitsu-git')
provides=('binjitsu-git')
source=("https://github.com/Gallopsled/pwntools/archive/$pkgver.tar.gz")
sha512sums=('6480fef7a2ed2b9dcee15fb8cddbbb4f33fbb9e61648faad2e6736e15218022187d22bb41d832148c76ebae07f512e46784c08994a040fd330856dfb810a033d')
prepare() {
cd "$pkgname-$pkgver"
sed -i 's|python|python2|' pwnlib/elf/datatypes.py
}
build(){
cd "$pkgname-$pkgver"
python2 setup.py build
}
package() {
cd "$pkgname-$pkgver"
python2 setup.py install --root="$pkgdir/" -O1 --skip-build
# install license
install -Dm644 LICENSE-pwntools.txt "$pkgdir/usr/share/licenses/$pkgname/license-pwntools.txt"
# fix conflict bins
mv "$pkgdir/usr/bin/checksec" "$pkgdir/usr/bin/pwntools-checksec"
mv "$pkgdir/usr/bin/disasm" "$pkgdir/usr/bin/pwntools-disasm"
mv "$pkgdir/usr/bin/errno" "$pkgdir/usr/bin/pwntools-errno"
}
You can’t perform that action at this time.