summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjerry732042015-09-23 11:47:33 +0800
committerjerry732042015-09-23 11:47:33 +0800
commitffa8477ee25d3023696a3d268b20cb0d9d9d532e (patch)
treeb0268495d1b0128a7872f877c206f840905f7ebb /PKGBUILD
parentf2ce133971cd359781e7974e8af3b92b95978293 (diff)
downloadaur-ffa8477ee25d3023696a3d268b20cb0d9d9d532e.tar.gz
Updated to 2.2.0-2. Fix up missing dependencies.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 21 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 03f2d1bba7d..0002231ece3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,36 @@
# Maintainer: jerry73204 <jerry73204@gmail.com>
pkgname=python2-pwntools
pkgver=2.2.0
-pkgrel=1
-pkgdesc="The CTF framework used by Gallopsled in every CTF."
+pkgrel=2
+pkgdesc="The CTF framework used by Gallopsled in every CTF"
arch=('any')
url="https://github.com/Gallopsled/pwntools/"
license=('MIT' 'GPL2' 'BSD')
-makedepends=('lib32-glibc')
-depends=('python2>=2.7' 'python2-mako' 'python2-paramiko')
+makedepends=('lib32-glibc'
+ 'python2-setuptools')
+depends=('python2>=2.7'
+ 'python2-mako'
+ 'python2-paramiko'
+ 'python2-pyelftools'
+ 'python2-capstone'
+ 'python2-pyserial'
+ 'python2-requests'
+ 'python2-psutil'
+ 'ropgadget')
conflicts=('python2-pwntools', 'python2-pwntools-git')
options=('strip')
source=("https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz")
md5sums=('3ab358401ec751436f71633fb7476c28')
-_repodir="pwntools-$pkgver"
+_repodir="pwntools-${pkgver}"
+
+prepare() {
+ cd "${srcdir}/${_repodir}"
+ sed -i "s/'capstone==2.1'/'capstone'/" setup.py
+}
package() {
- cd "$srcdir/$_repodir"
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd "${srcdir}/${_repodir}"
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
install -D -m 644 LICENSE-pwntools.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}