summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4759830d7670e5801bb0b3a85ae66d94d9ec600b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Eritque Arcus <eritque-arcus at eritque-arcus dot tech>

_name="pyhidra"
pkgname="python-$_name"
pkgver=1.0.2
pkgrel=1
pkgdesc='Pyhidra is a Python library that provides direct access to the Ghidra API within a native CPython interpreter using jpype.'
arch=(any)
url="https://github.com/dod-cyber-crime-center/$_name"
license=(LicenseRef-DC3-Pyhidra-Open-Source-License)
depends=(python python-jpype1 'java-environment>=17')
makedepends=(python-setuptools python-build python-installer python-wheel)
source=($pkgname-$pkgver.tar.gz::"$url/archive/$pkgver.tar.gz")
sha256sums=('8d72973189ae6b58cc9a9ff1950d632f5dd237e3fdd81c090c7e13582181ce0e')

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

package(){
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}