Skip to content

Commit

Permalink
python-frida: pkgrel++.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Feb 1, 2025
1 parent e8ee254 commit ffe6c42
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/python-frida/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-frida
_pkgname=frida
pkgver=15.2.2
pkgrel=5
pkgdesc='Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers.'
groups=('blackarch' 'blackarch-reversing' 'blackarch-binary')
arch=('x86_64' 'aarch64')
url='https://pypi.org/project/frida/#files'
depends=('python' 'python-colorama' 'python-pygments' 'python-prompt_toolkit'
'python-typing_extensions' 'python-tomlkit')
makedepends=('python-build' 'python-installer' 'python-wheel' 'nodejs' 'npm'
'python-setuptools')
license=('custom:unknown')
provides=('frida')
replaces=('frida')
conflicts=('frida')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/frida/frida/master/COPYING')
sha512sums=('9abf88124e75d184be30be0647ea1b500b2fede01cc54cd6a64d4fb6eab44a5ede2d8cb0fc6de91a1c5d3f31316a38a9e9a89bfe8472937bf85f24801f805cde'
'e36c8d5a0538fa4bb3575a60322057f7a687aab04c13deed25399462ba0be74ce6071cc41d967e23b9a96e552462d210280427a945c6cc956919b062878efc9a')

build() {
cd "$_pkgname-$pkgver"

python -m build --wheel --no-isolation --outdir="$startdir/dist"
}

package_python-frida() {
cd "$_pkgname-$pkgver"

python -m installer --destdir="$pkgdir" "$startdir/dist/"*.whl

install -Dm 644 "$srcdir/COPYING" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

0 comments on commit ffe6c42

Please sign in to comment.