summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjerry732042015-12-08 17:17:44 +0800
committerjerry732042015-12-08 17:17:44 +0800
commit144fec29ddeab19b089934c05729c7f0e521d646 (patch)
treef3b218537f7997d578b45761b8c9a1bfa280e877
parentffa8477ee25d3023696a3d268b20cb0d9d9d532e (diff)
downloadaur-144fec29ddeab19b089934c05729c7f0e521d646.tar.gz
Updated to 2.2.0-3. Rename binaries in /usr/bin/*
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 10 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c70a63c9750..9ff82eb353f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,9 @@
+# Generated by mksrcinfo v8
+# Tue Dec 8 09:16:58 UTC 2015
pkgbase = python2-pwntools
pkgdesc = The CTF framework used by Gallopsled in every CTF
pkgver = 2.2.0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/Gallopsled/pwntools/
arch = any
license = MIT
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
}