diff --git a/packages/python-peid/PKGBUILD b/packages/python-peid/PKGBUILD new file mode 100644 index 00000000000..cfa7cbb2623 --- /dev/null +++ b/packages/python-peid/PKGBUILD @@ -0,0 +1,39 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-peid +_pkgname=peid +pkgver=1.2.9 +pkgrel=1 +pkgdesc='Python implementation of the Packed Executable iDentifier (PEiD)' +arch=('any') +grouos=('blackarch' 'blackarch-binary' 'blackarch-reversing') +license=('GPL3') +depends=('python' 'python-pefile' 'python-pip') +makedepends=('python-build') +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha512sums=('00d164e7ac55cda5750c43154a115df62229dd55845407add9127cb481b7e036f1b1783e52602820db63106595f246e01cdce3b6946c8035d780794f16f18873') + +build() { + cd "$_pkgname-$pkgver" + + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd "$_pkgname-$pkgver" + + pip install \ + --verbose \ + --disable-pip-version-check \ + --no-warn-script-location \ + --ignore-installed \ + --no-compile \ + --no-deps \ + --root="$pkgdir" \ + --prefix=/usr \ + --no-index \ + --find-links="file://$startdir/dist" \ + "$_pkgname" +} +