mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
68 lines
2.2 KiB
Bash
68 lines
2.2 KiB
Bash
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Contributor: Ding Xiao <tinocodfcdsa10@mails.tsinghua.edu.cn>
|
|
# Contributor: Firmy <firmianay@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - removed makedepend on pandoc
|
|
|
|
pkgname=python-pwntools
|
|
_pyname=pwntools
|
|
pkgver=4.5.1
|
|
pkgrel=1
|
|
pkgdesc='CTF framework and exploit development library'
|
|
url='https://github.com/Gallopsled/pwntools'
|
|
arch=('any')
|
|
license=('MIT' 'GPL2' 'BSD')
|
|
depends=('python'
|
|
'python-mako'
|
|
'python-pyelftools'
|
|
'python-capstone'
|
|
'ropgadget'
|
|
'python-pyserial'
|
|
'python-requests'
|
|
'python-pip'
|
|
'python-pygments'
|
|
'python-pysocks'
|
|
'python-dateutil'
|
|
'python-packaging'
|
|
'python-psutil'
|
|
'python-intervaltree'
|
|
'python-sortedcontainers'
|
|
'python-unicorn'
|
|
'python-paramiko'
|
|
'python-colored-traceback'
|
|
'python-rpyc'
|
|
'ropgadget')
|
|
makedepends=('python-setuptools')
|
|
source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
|
pwn.conf)
|
|
sha256sums=('fcf4e7373f522201e661c6baf6bf4305c61091ba73f60e95fb0a4c0c29c7043b'
|
|
'50916e4e45d026422cd6bfe8de50e7246c61b0b1e0007571e7c04a994282fe89')
|
|
b2sums=('70b431bdecbdcd4b65dbb215451f4d59c5e24bc66fa0ef44ba3d78e6e49674b298e693f1726221cd198e580e3c78f8e0a3ff36b4ccdba6dcdbb54973502ade25'
|
|
'cac0a12eea8abd3d2ee21632e7f2281e7e35c2d7839cfbcba83ae5d0e8f427e9cc2462a6d17d187252b99d9dbbb14393b9d5a63996c42043f553e9b66bfe9e07')
|
|
|
|
prepare() {
|
|
cd ${_pyname}-${pkgver}
|
|
sed 's|>=1.0.2rc1,<1.0.2rc4||' -i setup.py
|
|
}
|
|
|
|
build() {
|
|
cd ${_pyname}-${pkgver}
|
|
python setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd "${_pyname}-${pkgver}"
|
|
PYTHONPATH=. PWNLIB_NOTERM=true python -c 'import pwn'
|
|
}
|
|
|
|
package() {
|
|
cd ${_pyname}-${pkgver}
|
|
python setup.py install -O1 --root="${pkgdir}" --skip-build --only-use-pwn-command
|
|
install -Dm 644 "${srcdir}/pwn.conf" -t "${pkgdir}/etc"
|
|
install -Dm 644 LICENSE-pwntools.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.{txt,md}
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|