-
-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* python-peid: add package * python-peid: package tweaks * python-peid: migrate to python package --------- Co-authored-by: winetrix <[email protected]>
- Loading branch information
1 parent
d195b8b
commit a61d3ba
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
|