diff --git a/srcpkgs/pwntools/patches/dont-pollute-sitepackages.patch b/srcpkgs/pwntools/patches/dont-pollute-sitepackages.patch new file mode 100644 index 00000000000000..94659285a3e758 --- /dev/null +++ b/srcpkgs/pwntools/patches/dont-pollute-sitepackages.patch @@ -0,0 +1,12 @@ +--- setup.py.orig ++++ setup.py +@@ -84,9 +84,6 @@ + python_requires = '>=2.7', + packages = find_packages(), + version = '4.2.1', +- data_files = [('', +- glob.glob('*.md') + glob.glob('*.txt')), +- ], + package_data = { + 'pwnlib': [ + 'data/crcsums.txt', diff --git a/srcpkgs/pwntools/template b/srcpkgs/pwntools/template new file mode 100644 index 00000000000000..0325b475d28393 --- /dev/null +++ b/srcpkgs/pwntools/template @@ -0,0 +1,27 @@ +# Template file for 'pwntools' +pkgname=pwntools +version=4.2.1 +revision=1 +build_style=python3-module +hostmakedepends="python3-setuptools" +makedepends="python3-devel" +depends="python3-paramiko python3-Mako python3-pyelftools capstone-python3 + python3-pyserial python3-requests python3-Pygments python3-pysocks + python3-dateutil python3-packaging python3-psutil python3-intervaltree + python3-sortedcontainers unicorn-python3 python3-six python3-setuptools + ROPgadget" +short_desc="CTF framework and exploit development library" +maintainer="Andrew Benson " +license="MIT" +homepage="https://pwntools.com" +distfiles="https://github.com/Gallopsled/pwntools/archive/${version}.tar.gz" +checksum=8f1a4bf7b668de6b222df887fdd820b7ff05547e7ff9a13ebbd10eecf43c7a78 + +post_install() { + cd ${DESTDIR}/usr/bin + for f in *; do + mv $f pwntools-$f + done + cd - + vlicense LICENSE-pwntools.txt +}