[arch-commits] Commit in python-pwntools/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Jan 23 23:54:34 UTC 2020


    Date: Thursday, January 23, 2020 @ 23:54:34
  Author: anthraxx
Revision: 555269

upgpkg: python-pwntools 4.0.1-2: fix dependency

we stick to release unicorn and live with the problems until we get a
fresh release

Modified:
  python-pwntools/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-23 23:25:43 UTC (rev 555268)
+++ PKGBUILD	2020-01-23 23:54:34 UTC (rev 555269)
@@ -1,14 +1,15 @@
 # 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.0.1"
-pkgrel=1
-pkgdesc="A CTF framework and exploit development library"
+pkgname=python-pwntools
+_pyname=pwntools
+pkgver=4.0.1
+pkgrel=2
+pkgdesc='CTF framework and exploit development library'
+url='https://github.com/Gallopsled/pwntools'
 arch=('any')
-url='https://github.com/Gallopsled/pwntools'
 license=('MIT' 'GPL2' 'BSD')
 depends=('python'
          'python-mako'
@@ -30,19 +31,24 @@
          'python-paramiko'
          'ropgadget'
          'python-setuptools')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Gallopsled/pwntools/archive/${pkgver}.tar.gz")
+source=(https://github.com/Gallopsled/pwntools/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
 sha256sums=('5598bf8ebb96264dab3663d296be3dfe783451cf3535ad611d094a7c550d467f')
 b2sums=('9003e0ef0ceaa3e1a089de68f94c854e65c12ce4e21d3b3aadfa0c777f7aa168f02869b34ccdede04b17d53a5ad8ea8b0d91a20ea0d73496b814847a3ce4b423')
 
+prepare() {
+  cd ${_pyname}-${pkgver}
+  sed 's|>=1.0.2rc1||' -i setup.py
+}
+
 build() {
-  cd "${_pyname}-${pkgver}"
+  cd ${_pyname}-${pkgver}
   python setup.py build
 }
 
 package() {
-  cd "${_pyname}-${pkgver}"
+  cd ${_pyname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --skip-build --only-use-pwn-command
-  install -D -m 644 LICENSE-pwntools.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 LICENSE-pwntools.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
   rm -f "${pkgdir}"/usr/lib/python*/site-packages/*.{txt,md}
 }
 



More information about the arch-commits mailing list