[arch-commits] Commit in ropgadget/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Thu May 12 17:04:16 UTC 2022


    Date: Thursday, May 12, 2022 @ 17:04:15
  Author: anthraxx
Revision: 1199770

archrelease: copy trunk to community-any

Added:
  ropgadget/repos/community-any/PKGBUILD
    (from rev 1199769, ropgadget/trunk/PKGBUILD)
Deleted:
  ropgadget/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   80 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-12 17:04:10 UTC (rev 1199769)
+++ PKGBUILD	2022-05-12 17:04:15 UTC (rev 1199770)
@@ -1,40 +0,0 @@
-# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
-# Contributor: s1gma <s1gma at mindslicer.com>
-
-pkgname=ropgadget
-_pkgname=ROPgadget
-pkgver=6.6
-pkgrel=3
-pkgdesc='Search gadgets in binaries to facilitate ROP exploitation for several file formats and architectures'
-url='http://www.shell-storm.org/project/ROPgadget'
-arch=('any')
-license=('BSD')
-depends=('python' 'python-capstone')
-makedepends=('python-setuptools')
-source=(https://github.com/JonathanSalwan/${_pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha512sums=('bf636a264975c95676e5bb6223d0cf04885699eeaf691c6c93a1ac8c1bc44f95323207660a57a58f44163f8c07156567daa73755b35a13cff5d27aee01ec4fb6')
-b2sums=('b1f1e5fbc76329f64122e65161ab188e9f7260c4e43d5e92e0e43cd4ebbf27ae281c32bd49790a363ff1d10360a1cda1846310054c249ab40279063a735654e6')
-
-prepare() {
-  cd ${_pkgname}-${pkgver}
-  sed 's|python2|python|g' -i ropgadget/**/*.py ropgadget/*/*/*.py
-}
-
-build() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${_pkgname}-${pkgver}
-  ./ROPgadget.py --binary ./test-suite-binaries/elf-Linux-x86 --string "main"
-}
-
-package() {
-  cd ${_pkgname}-${pkgver}
-  python setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build
-  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-  install -Dm 644 LICENSE_BSD.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: ropgadget/repos/community-any/PKGBUILD (from rev 1199769, ropgadget/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-12 17:04:15 UTC (rev 1199770)
@@ -0,0 +1,40 @@
+# Maintainer: Levente Polyak <levente[at]leventepolyak[dot]net>
+# Contributor: s1gma <s1gma at mindslicer.com>
+
+pkgname=ropgadget
+_pkgname=ROPgadget
+pkgver=6.7
+pkgrel=1
+pkgdesc='Search gadgets in binaries to facilitate ROP exploitation for several file formats and architectures'
+url='http://www.shell-storm.org/project/ROPgadget'
+arch=('any')
+license=('BSD')
+depends=('python' 'python-capstone')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+source=(https://github.com/JonathanSalwan/${_pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('81bebafc1ba9cb18e017487395dacdaae044d6f1383604a0183b41d2210651c9a6870755f741cd7a3e2dc38ee5c004b0aeac52cc1082fa352c06c0598ac7e87b')
+b2sums=('004f28993e3567b8bf78853c83b60fa17ff7dc8eb82867eabec33aee247283938ed522883bcf62a11f27a70fa10c4afbdd2636d613770bc8fa0ee7dd3667e859')
+
+prepare() {
+  cd ${_pkgname}-${pkgver}
+  sed 's|python2|python|g' -i ropgadget/**/*.py ropgadget/*/*/*.py
+}
+
+build() {
+  cd ${_pkgname}-${pkgver}
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd ${_pkgname}-${pkgver}
+  ./ROPgadget.py --binary ./test-suite-binaries/elf-Linux-x86 --string "main"
+}
+
+package() {
+  cd ${_pkgname}-${pkgver}
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE_BSD.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list