summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO34
-rw-r--r--.gitignore7
-rw-r--r--PKGBUILD43
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..98cf3156cdd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = python-pwntools-git
+ pkgdesc = A CTF framework and exploit development library. (git branch dev3)
+ pkgver = 3.13.0beta0.r186.gb6061878
+ pkgrel = 1
+ url = https://github.com/Gallopsled/pwntools
+ arch = any
+ license = GPL
+ makedepends = make
+ depends = python
+ depends = python-intervaltree
+ depends = python-pyelftools
+ depends = python-tox
+ depends = python-mako
+ depends = python-unicorn
+ depends = python-psutil
+ depends = python-dateutil
+ depends = python-pysocks
+ depends = python-pygments
+ depends = python-pip
+ depends = python-pyserial
+ depends = python-paramiko
+ depends = ropgadget
+ depends = python-capstone
+ depends = python-requests
+ depends = python-psutil
+ depends = python-pypandoc
+ depends = python-packaging
+ optdepends = gdb: binary debugging
+ provides = python-pwntools
+ source = python-pwntools-git::git+https://github.com/mcd1992/pwntools.git#branch=dev3
+ sha256sums = SKIP
+
+pkgname = python-pwntools-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..143dd27dd79
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+# Ignored folders
+src/
+pkg/
+python-pwntools-git/
+
+# Ignored files
+*.pkg.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..72d86d9716b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Aaron McDaniel (mcd1992) <'aur' at the domain 'fgthou.se'>
+
+pkgname=python-pwntools-git
+pkgver=3.13.0beta0.r186.gb6061878
+pkgrel=1
+pkgdesc='A CTF framework and exploit development library. (git branch dev3)'
+url='https://github.com/Gallopsled/pwntools'
+arch=('any')
+license=('GPL')
+makedepends=('make')
+depends=('python' 'python-intervaltree' 'python-pyelftools' 'python-tox' 'python-mako'
+ 'python-unicorn' 'python-psutil' 'python-dateutil' 'python-pysocks' 'python-pygments'
+ 'python-pip' 'python-pyserial' 'python-paramiko' 'ropgadget' 'python-capstone'
+ 'python-requests' 'python-psutil' 'python-pypandoc' 'python-packaging')
+optdepends=('gdb: binary debugging')
+#source=("${pkgname}::git+https://github.com/Gallopsled/pwntools.git#branch=dev3")
+source=("${pkgname}::git+https://github.com/mcd1992/pwntools.git#branch=dev3")
+sha256sums=('SKIP')
+provides=('python-pwntools')
+
+pkgver() {
+ cd ${pkgname}
+ # Remove 'v' prefix on tags; prefix revision with 'r'; replace all '-' with '.'
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+ #sed -i "s/'sortedcontainers<2.0'/'sortedcontainers'/" setup.py
+ #sed -i "s/'intervaltree<3.0'/'intervaltree'/" setup.py
+}
+
+build() {
+ cd ${pkgname}
+ python3 setup.py build
+}
+
+package() {
+ cd ${pkgname}
+ python3 setup.py install --root=${pkgdir}/ --optimize=1
+ install -D -m 644 LICENSE-pwntools.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ rm -f ${pkgdir}/usr/lib/python*/site-packages/*.{txt,md}
+}