diff options
author | jerry73204 | 2015-09-05 10:02:07 +0800 |
---|---|---|
committer | jerry73204 | 2015-09-05 10:17:47 +0800 |
commit | f2ce133971cd359781e7974e8af3b92b95978293 (patch) | |
tree | 533cecda346b234f63689afc3aa31563a3c964bd /PKGBUILD | |
parent | 74f1031ca2d4d8f961890b3c656d2491899f465e (diff) | |
download | aur-f2ce133971cd359781e7974e8af3b92b95978293.tar.gz |
Switch source url to released tar.gz on Github. Update version to 2.2.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 8 insertions, 14 deletions
@@ -1,6 +1,6 @@ -# Maintainer: Borja Ruiz <borja [at] libcrack [dot] so> +# Maintainer: jerry73204 <jerry73204@gmail.com> pkgname=python2-pwntools -pkgver=2.2.r49.g7d964f8 +pkgver=2.2.0 pkgrel=1 pkgdesc="The CTF framework used by Gallopsled in every CTF." arch=('any') @@ -8,21 +8,15 @@ url="https://github.com/Gallopsled/pwntools/" license=('MIT' 'GPL2' 'BSD') makedepends=('lib32-glibc') depends=('python2>=2.7' 'python2-mako' 'python2-paramiko') -provides=('python2-pwntools') -conflicts=('python2-pwntools') -replaces=('python2-pwntools') -backup=() -options=(!emptydirs) -source=("$pkgname"::'git+https://github.com/Gallopsled/pwntools.git') -md5sums=('SKIP') +conflicts=('python2-pwntools', 'python2-pwntools-git') +options=('strip') +source=("https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz") +md5sums=('3ab358401ec751436f71633fb7476c28') -pkgver() { - cd "$srcdir/$pkgname" - git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' -} +_repodir="pwntools-$pkgver" package() { - cd "$srcdir/$pkgname" + cd "$srcdir/$_repodir" python2 setup.py install --root="$pkgdir/" --optimize=1 install -D -m 644 LICENSE-pwntools.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |