Skip to content

Commit

Permalink
python-peid: add package (#3893)
Browse files Browse the repository at this point in the history
* python-peid: add package

* python-peid: package tweaks

* python-peid: migrate to python package

---------

Co-authored-by: winetrix <[email protected]>
  • Loading branch information
astro-angelfish and noptrix authored Jul 7, 2023
1 parent d195b8b commit a61d3ba
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/python-peid/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit a61d3ba

Please sign in to comment.