[arch-commits] Commit in ropper/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 03:25:38 UTC 2019


    Date: Monday, November 4, 2019 @ 03:25:36
  Author: felixonmars
Revision: 523060

archrelease: copy trunk to community-staging-any

Added:
  ropper/repos/community-staging-any/
  ropper/repos/community-staging-any/PKGBUILD
    (from rev 523059, ropper/trunk/PKGBUILD)

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Copied: ropper/repos/community-staging-any/PKGBUILD (from rev 523059, ropper/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 03:25:36 UTC (rev 523060)
@@ -0,0 +1,67 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=ropper
+pkgname=('ropper' 'python-ropper' 'python2-ropper')
+_pkgname=Ropper
+pkgver=1.12.5
+pkgrel=2
+pkgdesc='Show information about binary files and find gadgets to build rop chains for different architectures'
+url='https://github.com/sashs/Ropper'
+arch=('any')
+license=('GPL2')
+makedepends=('python-setuptools' 'python-capstone' 'python-filebytes'
+             'python2-setuptools' 'python2-capstone' 'python2-filebytes')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sashs/${_pkgname}/archive/v${pkgver}.tar.gz)
+sha512sums=('d5afe158e16569a8bd7ec634f0666a8af2f057a72d0a0d0b974b72b3e44a7f826ebaa46b83a0c2c7bcc2a52b660f2f7cc94ecc54562be08d06079cb57e16ca41')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+  sed -r 's|(env python)|\12|' -i ${_pkgname}-${pkgver}-py2/sample.py
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    python test.py
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 test.py
+  )
+}
+
+package_ropper() {
+  depends=('python' "python-ropper>=${pkgver}")
+  optdepends=('python-keystone: assemble command support')
+  cd ${_pkgname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/lib"
+}
+
+package_python-ropper() {
+  depends=('python-capstone' 'python-filebytes')
+  optdepends=('python-keystone: assemble command support')
+  cd ${_pkgname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 README.md sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/bin"
+}
+
+package_python2-ropper() {
+  depends=('python2-capstone' 'python2-filebytes')
+  optdepends=('python2-keystone: assemble command support')
+  cd ${_pkgname}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -Dm 644 README.md sample.py -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -r "${pkgdir}/usr/bin"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list