summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjerry732042016-03-30 13:55:41 +0800
committerjerry732042016-03-30 13:55:41 +0800
commit0e25ca4c836b50d59f3575c6a16b629806181c1b (patch)
tree5bfdffaeacf5d874c48e5ce53de2b69c370909a1 /PKGBUILD
parent6d9d29f1546a00788a82cc3c0395496388cd52d8 (diff)
downloadaur-0e25ca4c836b50d59f3575c6a16b629806181c1b.tar.gz
Updated to 2.2.0-5. Upload patch for removing argparse dependency
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 025239d59f9..885f0c7640a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Maintainer: jerry73204 <jerry73204@gmail.com>
pkgname=python2-pwntools
pkgver=2.2.0
-pkgrel=4
-pkgdesc="The CTF framework used by Gallopsled in every CTF"
+pkgrel=5
+pkgdesc='The CTF framework used by Gallopsled in every CTF'
arch=('any')
-url="https://github.com/Gallopsled/pwntools/"
+url='https://github.com/Gallopsled/pwntools/'
license=('MIT' 'GPL2' 'BSD')
makedepends=('lib32-glibc'
'python2-setuptools')
@@ -19,13 +19,16 @@ depends=('python2>=2.7'
'ropgadget')
conflicts=('python2-pwntools' 'python2-pwntools-git')
options=('strip')
-source=("https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz")
-md5sums=('3ab358401ec751436f71633fb7476c28')
+source=("https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz"
+ 'remove-argparse.patch')
+md5sums=('3ab358401ec751436f71633fb7476c28'
+ 'b0d3d53980787e7fd841526e4d92b194')
_repodir="pwntools-${pkgver}"
prepare() {
cd "${srcdir}/${_repodir}"
+ patch -Np1 < "${srcdir}/remove-argparse.patch"
sed -i "s/'capstone==2.1'/'capstone'/" setup.py
}
@@ -33,6 +36,7 @@ package() {
cd "${srcdir}/${_repodir}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m 644 LICENSE-pwntools.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ rm "${pkgdir}/usr/lib/python"*"/site-packages/LICENSE-pwntools.txt"
# rename binaries to avoid filename confliction
for bin in "${pkgdir}/usr/bin/"*; do