diff options
author | Benjamin Levy | 2019-11-20 22:09:43 -0500 |
---|---|---|
committer | Benjamin Levy | 2019-11-20 22:09:43 -0500 |
commit | 01948f45e715aa42b71a5a3d56f6c5aab6dcd718 (patch) | |
tree | 5fb3ed3ed5cae7dc8da93f3c8b4ff3504f7197d3 | |
download | aur-01948f45e715aa42b71a5a3d56f6c5aab6dcd718.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 36 | ||||
-rwxr-xr-x | PKGBUILD | 53 |
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3ae66c5c3d81 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = python2-pwntools-nopwn + pkgdesc = A CTF framework and exploit development library. Patch to remove /usr/bin/pwn to resolve conflicts when using both py2/py3. + pkgver = 3.13.0beta0 + pkgrel = 4 + url = https://github.com/Gallopsled/pwntools + arch = any + license = MIT + license = GPL2 + license = BSD + makedepends = lib32-glibc + makedepends = python2-setuptools + depends = python2>=2.7 + depends = python2-mako + depends = python2-paramiko + depends = python2-pyelftools + depends = python2-capstone + depends = python2-pyserial + depends = python2-requests + depends = python2-psutil + depends = python2-tox + depends = python2-pysocks + depends = python2-dateutil + depends = python2-pygments + depends = python2-pypandoc + depends = python2-packaging + depends = python2-unicorn + depends = python2-intervaltree + depends = python2-pip + depends = ropgadget + provides = python2-pwntools + conflicts = python2-pwntools + options = strip + source = python2-pwntools-nopwn-3.12.1.tar.gz::https://github.com/Gallopsled/pwntools/archive/3.12.1.tar.gz + sha256sums = dfea4140d345f2749086e07ed9c08d5625e50e0f969e2894509e69f9d4755c3d + +pkgname = python2-pwntools-nopwn diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..dedaada27676 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Benjamin Levy <blevy@protonmail.com> +# Contributor: Ding Xiao <tinocodfcdsa10@mails.tsinghua.edu.cn> +# Contributor: Firmy <firmianay@gmail.com> +pkgname=python2-pwntools-nopwn +pkgver=3.13.0beta0 +_pkgver=3.12.1 +pkgrel=4 +pkgdesc='A CTF framework and exploit development library. Patch to remove /usr/bin/pwn to resolve conflicts when using both py2/py3.' +arch=('any') +url='https://github.com/Gallopsled/pwntools' +license=('MIT' 'GPL2' 'BSD') +makedepends=('lib32-glibc' + 'python2-setuptools') +depends=('python2>=2.7' + 'python2-mako' + 'python2-paramiko' + 'python2-pyelftools' + 'python2-capstone' + 'python2-pyserial' + 'python2-requests' + 'python2-psutil' + 'python2-tox' + 'python2-pysocks' + 'python2-dateutil' + 'python2-pygments' + 'python2-pypandoc' + 'python2-packaging' + 'python2-unicorn' + 'python2-intervaltree' + 'python2-pip' + 'ropgadget') +provides=('python2-pwntools') +conflicts=('python2-pwntools') +options=('strip') +source=("${pkgname}-${_pkgver}.tar.gz::https://github.com/Gallopsled/pwntools/archive/${_pkgver}.tar.gz") +sha256sums=('dfea4140d345f2749086e07ed9c08d5625e50e0f969e2894509e69f9d4755c3d') + +_repodir="pwntools-${_pkgver}" + +prepare() { + cd ${srcdir}/${_repodir} +} + +package() { + cd ${srcdir}/${_repodir} + + # Patch to remove /usr/bin/pwn + sed -i "s/'pwn=pwnlib.commandline.main:main'//g" setup.py + + python2 setup.py install --root=${pkgdir}/ --optimize=1 --only-use-pwn-command + install -D -m 644 LICENSE-pwntools.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + rm ${pkgdir}/usr/lib/python*/site-packages/*.{txt,md} +} |