summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjerry732042015-12-08 17:17:44 +0800
committerjerry732042015-12-08 17:17:44 +0800
commit144fec29ddeab19b089934c05729c7f0e521d646 (patch)
treef3b218537f7997d578b45761b8c9a1bfa280e877 /PKGBUILD
parentffa8477ee25d3023696a3d268b20cb0d9d9d532e (diff)
downloadaur-144fec29ddeab19b089934c05729c7f0e521d646.tar.gz
Updated to 2.2.0-3. Rename binaries in /usr/bin/*
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0002231ece3..60b8e185648 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: jerry73204 <jerry73204@gmail.com>
pkgname=python2-pwntools
pkgver=2.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="The CTF framework used by Gallopsled in every CTF"
arch=('any')
url="https://github.com/Gallopsled/pwntools/"
@@ -33,4 +33,10 @@ 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"
+
+ # 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
}