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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 18:51:10 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:51:09
  Author: foutrelis
Revision: 753218

archrelease: copy trunk to community-staging-any

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

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

Copied: ropper/repos/community-staging-any/PKGBUILD (from rev 753216, ropper/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:51:09 UTC (rev 753218)
@@ -0,0 +1,44 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=ropper
+pkgname=('ropper' 'python-ropper')
+_pkgname=Ropper
+pkgver=1.13.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')
+source=(https://github.com/sashs/${_pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('ef9d308352ba4a662ef3eb9da77b7dcd458582d3840acd2c197c20d91023a6a1a2d68340b1557f053b45096a5dad0443e64bb5e48e20c30a953c9a4e8c89b7f2')
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  python 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"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list