blob: 692c3c8df52a39f29930c94c2ecd4c1b0f626425 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Ding Xiao <tinocodfcdsa10@mails.tsinghua.edu.cn>
# Contributor : Firmy <firmianay@gmail.com>
pkgname="python2-pwntools-git"
pkgver=3.13.0beta0.r51.gc89bed25
pkgrel=2
pkgdesc='A CTF framework and exploit development library. (git version, branch dev)'
arch=('any')
url='https://github.com/Gallopsled/pwntools'
license=('GPL2' 'BSD' 'MIT')
makedepends=('lib32-glibc'
'python2-setuptools')
depends=('python2>=2.7'
'python2-mako'
'python2-paramiko'
'python2-pyelftools'
'python2-capstone'
'python2-pyserial'
'python2-unicorn'
'python2-intervaltree'
'python2-pip'
'python2-requests'
'python2-psutil'
'python2-tox'
'python2-pysocks'
'python2-dateutil'
'python2-pygments'
'python2-pypandoc'
'python2-packaging'
'ropgadget')
provides=('python2-pwntools')
conflicts=('python2-pwntools')
source=("${pkgname}::git+https://github.com/Gallopsled/pwntools.git")
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${pkgname}
git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd ${srcdir}/${pkgname}
}
build() {
cd ${srcdir}/${pkgname}
python2 setup.py build
}
package() {
cd ${srcdir}/${pkgname}
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 -f ${pkgdir}/usr/lib/python*/site-packages/*.{txt,md}
}
|