summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjerry732042017-03-10 20:09:27 +0800
committerjerry732042017-03-10 20:09:27 +0800
commite228f8b52aec377bbcb311679f52d6668812ac5f (patch)
treef31b9d462a358751a61d6342c02e9f754fb6848d /PKGBUILD
parent324dc27f705d3a9f91e7bfe297268b11f99aa5e7 (diff)
downloadaur-e228f8b52aec377bbcb311679f52d6668812ac5f.tar.gz
Updated to 3.4.1-1. Add --only-use-pwn-command to setup.py
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 7 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7c9838ab238..bf010e57b85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: jerry73204 <jerry73204@gmail.com>
pkgname=python2-pwntools
-pkgver=3.3.0
+pkgver=3.4.1
pkgrel=1
pkgdesc='The CTF framework used by Gallopsled in every CTF'
arch=('any')
@@ -26,24 +26,17 @@ depends=('python2>=2.7'
conflicts=('python2-pwntools' 'python2-pwntools-git')
options=('strip')
source=("https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz")
-sha256sums=('323775fb33ef289065a39817ff0b53a4e1bf6383723ba9553b7e1c1ef1b8bc24')
+sha256sums=('54e741557609af73c1817ff9f5a4087390ba9cb0f1b11264ab5bbf225e326bec')
_repodir="pwntools-${pkgver}"
prepare() {
- cd "${srcdir}/${_repodir}"
- # patch -Np1 < "${srcdir}/remove-argparse.patch"
+ cd ${srcdir}/${_repodir}
}
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
- msg "rename binary ${bin##*/} to pwn-${bin##*/}"
- mv "$bin" "${bin%/*}/pwn-${bin##*/}"
- done
+ cd ${srcdir}/${_repodir}
+ 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/LICENSE-pwntools.txt
}