2020-12-05 21:08:44 +00:00
|
|
|
# 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
|
2021-11-15 18:12:56 +00:00
|
|
|
pkgver=4.7.0
|
2021-03-29 12:38:36 +00:00
|
|
|
pkgrel=1
|
2020-12-05 21:08:44 +00:00
|
|
|
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'
|
2021-05-02 02:51:49 +00:00
|
|
|
'python-colored-traceback'
|
|
|
|
'python-rpyc'
|
2021-03-07 18:05:52 +00:00
|
|
|
'ropgadget')
|
|
|
|
makedepends=('python-setuptools')
|
2020-12-05 21:08:44 +00:00
|
|
|
source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
|
|
|
pwn.conf)
|
2021-11-15 18:12:56 +00:00
|
|
|
sha256sums=('0eae8558029e383f88b9569c7f711c5b3fc150fc02bd6256b116663809ae797a'
|
2020-12-05 21:08:44 +00:00
|
|
|
'50916e4e45d026422cd6bfe8de50e7246c61b0b1e0007571e7c04a994282fe89')
|
2021-11-15 18:12:56 +00:00
|
|
|
b2sums=('d3cb17a56e3449241ae264d260145d6e2aa607a614cb22fb79a55ef105352380a8f30c8cf22bc25e53700b2a54234380b8050c95f90ac6994156c9daf82dead3'
|
2020-12-05 21:08:44 +00:00
|
|
|
'cac0a12eea8abd3d2ee21632e7f2281e7e35c2d7839cfbcba83ae5d0e8f427e9cc2462a6d17d187252b99d9dbbb14393b9d5a63996c42043f553e9b66bfe9e07')
|
|
|
|
|
|
|
|
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}
|
2021-11-15 18:12:56 +00:00
|
|
|
|
|
|
|
install -Dm 644 extra/bash_completion.d/pwn -t "${pkgdir}/usr/share/bash-completion/completions/"
|
|
|
|
install -Dm 644 extra/zsh_completion/_pwn -t "${pkgdir}/usr/share/zsh/site-functions/"
|
2020-12-05 21:08:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|