[arch-commits] Commit in python-pwntools/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 17:09:05 UTC 2020


    Date: Thursday, November 12, 2020 @ 17:09:05
  Author: foutrelis
Revision: 752282

archrelease: copy trunk to community-staging-any

Added:
  python-pwntools/repos/community-staging-any/
  python-pwntools/repos/community-staging-any/PKGBUILD
    (from rev 752281, python-pwntools/trunk/PKGBUILD)
  python-pwntools/repos/community-staging-any/pwn.conf
    (from rev 752281, python-pwntools/trunk/pwn.conf)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 pwn.conf |    2 +
 2 files changed, 66 insertions(+)

Copied: python-pwntools/repos/community-staging-any/PKGBUILD (from rev 752281, python-pwntools/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 17:09:05 UTC (rev 752282)
@@ -0,0 +1,64 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Ding Xiao <tinocodfcdsa10 at mails.tsinghua.edu.cn>
+# Contributor: Firmy <firmianay at gmail.com>
+
+pkgname=python-pwntools
+_pyname=pwntools
+pkgver=4.3.0
+pkgrel=2
+pkgdesc='CTF framework and exploit development library'
+url='https://github.com/Gallopsled/pwntools'
+arch=('any')
+license=('MIT' 'GPL2' 'BSD')
+depends=('python'
+         'python-mako'
+         'python-pyelftools'
+         'python-capstone'
+         'ropgadget'
+         'python-pyserial'
+         'python-requests'
+         'python-pip'
+         'python-pygments'
+         'python-pysocks'
+         'python-dateutil'
+         'python-packaging'
+         'python-psutil'
+         'python-intervaltree'
+         'python-sortedcontainers'
+         'python-unicorn'
+         'python-paramiko'
+         'ropgadget'
+         'python-setuptools')
+makedepends=('pandoc')
+source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        pwn.conf)
+sha256sums=('29ad028afccf79a0411e7d37ac1076ddad9db9b1a596034fd8d6d5a76b53c7d8'
+            '50916e4e45d026422cd6bfe8de50e7246c61b0b1e0007571e7c04a994282fe89')
+b2sums=('512793b32a8f0f8e43c48f32b38d82727854283dcf99719320b0e74282d373ae769002dacc85196ac1a56ec2432c032265963933198e94673af00b928dfe265f'
+        'cac0a12eea8abd3d2ee21632e7f2281e7e35c2d7839cfbcba83ae5d0e8f427e9cc2462a6d17d187252b99d9dbbb14393b9d5a63996c42043f553e9b66bfe9e07')
+
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed 's|>=1.0.2rc1,<1.0.2rc4||' -i setup.py
+}
+
+build() {
+  cd ${_pyname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd "${_pyname}-${pkgver}"
+  PYTHONPATH=. PWNLIB_NOTERM=true python -c 'import pwn'
+}
+
+package() {
+  cd ${_pyname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build --only-use-pwn-command
+  install -Dm 644 "${srcdir}/pwn.conf" -t "${pkgdir}/etc"
+  install -Dm 644 LICENSE-pwntools.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.{txt,md}
+}
+
+# vim:set ts=2 sw=2 et:

Copied: python-pwntools/repos/community-staging-any/pwn.conf (from rev 752281, python-pwntools/trunk/pwn.conf)
===================================================================
--- community-staging-any/pwn.conf	                        (rev 0)
+++ community-staging-any/pwn.conf	2020-11-12 17:09:05 UTC (rev 752282)
@@ -0,0 +1,2 @@
+[update]
+interval=never



More information about the arch-commits mailing list