From eaaa7c392d318db091d647b6ee15fbb44cb0a945 Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 9 Oct 2024 18:31:06 +0200 Subject: [PATCH 1/5] ghidriff: add package --- packages/ghidriff/PKGBUILD | 39 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/ghidriff/PKGBUILD diff --git a/packages/ghidriff/PKGBUILD b/packages/ghidriff/PKGBUILD new file mode 100644 index 00000000000..e6689921b3b --- /dev/null +++ b/packages/ghidriff/PKGBUILD @@ -0,0 +1,39 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=ghidriff +pkgver=v0.7.3.r0.g853ff79 +pkgrel=1 +pkgdesc='Python Command-Line Ghidra Binary Diffing Engine.' +arch=('any') +groups=('blackarch' 'blackarch-automation' 'blackarch-reversing') +url='https://github.com/clearbluejar/ghidriff' +license=('GPL3') +depends=('python' 'python-pyhidra' 'python-mdutils' 'ghidra') +makedepends=('python-setuptools') +source=("git+https://github.com/clearbluejar/$pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $pkgname + + python setup.py build +} + +package() { + cd $pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} + From be535b2981faf1e80689af619ce7567e72dfd352 Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 9 Oct 2024 18:32:24 +0200 Subject: [PATCH 2/5] python-mdutils: add package --- packages/python-mdutils/PKGBUILD | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 packages/python-mdutils/PKGBUILD diff --git a/packages/python-mdutils/PKGBUILD b/packages/python-mdutils/PKGBUILD new file mode 100644 index 00000000000..794285edb37 --- /dev/null +++ b/packages/python-mdutils/PKGBUILD @@ -0,0 +1,39 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-mdutils +_pkgname=${pkgname#python-} +pkgver=v1.6.0.r4.geaa500d +pkgrel=1 +pkgdesc='Set of basic tools that can help to create a markdown file.' +arch=('any') +url='https://github.com/didix21/mdutils' +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=("git+https://github.com/didix21/$_pkgname.git") +sha512sums=('SKIP') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +build() { + cd $_pkgname + + python setup.py build +} + +package() { + cd $_pkgname + + python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build +} + From 4a88a6fb4cf6e26e6c2e0d190f50704923fab3d9 Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 9 Oct 2024 18:33:51 +0200 Subject: [PATCH 3/5] python-pyhidra: add package --- packages/python-pyhidra/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 packages/python-pyhidra/PKGBUILD diff --git a/packages/python-pyhidra/PKGBUILD b/packages/python-pyhidra/PKGBUILD new file mode 100644 index 00000000000..9513eb92d78 --- /dev/null +++ b/packages/python-pyhidra/PKGBUILD @@ -0,0 +1,29 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-pyhidra +_pkgname=${pkgname#python-} +pkgver=1.3.0 +pkgrel=1 +pkgdesc='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/pyhidra' +license=('custom: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.zip::"$url/archive/$pkgver.zip") +sha512sums=('bf8f43436fec0eb340ca13ca415a9ed861dab3c50c54ca1a24c5e148c13883979164f02b58d5abbb56b112a99672d8ad25fe6a0ccf1ad4368a0334fa72aaa3d0') + +build() { + cd "$_pkgname-$pkgver" + + python -m build --wheel --no-isolation +} + +package(){ + cd "$_pkgname-$pkgver" + + python -m installer --destdir="$pkgdir" dist/*.whl + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + From a153f7d8adb96b3d921ef07368e43670b4e76fb6 Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 9 Oct 2024 18:43:23 +0200 Subject: [PATCH 4/5] python-jpype1: add package --- packages/python-jpype1/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/python-jpype1/PKGBUILD diff --git a/packages/python-jpype1/PKGBUILD b/packages/python-jpype1/PKGBUILD new file mode 100644 index 00000000000..0fa388dc89e --- /dev/null +++ b/packages/python-jpype1/PKGBUILD @@ -0,0 +1,30 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-jpype1 +_pkgname=${pkgname#python-} +pkgver=1.5.0 +pkgrel=1 +pkgdesc="Python to Java bridge, an effort to allow Python programs full access to Java class libraries" +arch=('x86_64') +url="https://github.com/jpype-project/jpype" +license=('Apache-2.0') +depends=('python' 'python-typing_extensions' 'python-packaging' 'java-runtime') +makedepends=('python-setuptools' 'ant') +conflicts=('jpype' 'python-jpype') +source=("https://github.com/jpype-project/jpype/archive/JPype1-$pkgver.tar.gz") +sha512sums=('7c3c8434dd07743d0a0b4176c13f8d82b2f042c25925912e905c92e06de30721f2b1788683f9d547bcb7b66f767f565298ead4c940d8109bc92e8c5824c8e1f5') + +build() { + ls + cd "jpype-$pkgver" + + python setup.py build +} + +package() { + cd "jpype-$pkgver" + + python setup.py install --root="$pkgdir" --optimize=1 +} + From c5b00828fb20a875b21136ace529f222504b20dc Mon Sep 17 00:00:00 2001 From: Antonio Date: Wed, 9 Oct 2024 18:44:20 +0200 Subject: [PATCH 5/5] Update to-release --- lists/to-release | 4 ++++ packages/ghidriff/PKGBUILD | 2 +- packages/python-jpype1/PKGBUILD | 5 ++--- packages/python-mdutils/PKGBUILD | 2 +- packages/python-pyhidra/PKGBUILD | 5 +++-- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..a6029672f91 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,4 @@ +python-jpype1 +python-pyhidra +python-mdutils +ghidriff diff --git a/packages/ghidriff/PKGBUILD b/packages/ghidriff/PKGBUILD index e6689921b3b..c6918306811 100644 --- a/packages/ghidriff/PKGBUILD +++ b/packages/ghidriff/PKGBUILD @@ -10,7 +10,7 @@ groups=('blackarch' 'blackarch-automation' 'blackarch-reversing') url='https://github.com/clearbluejar/ghidriff' license=('GPL3') depends=('python' 'python-pyhidra' 'python-mdutils' 'ghidra') -makedepends=('python-setuptools') +makedepends=('git' 'python-setuptools') source=("git+https://github.com/clearbluejar/$pkgname.git") sha512sums=('SKIP') diff --git a/packages/python-jpype1/PKGBUILD b/packages/python-jpype1/PKGBUILD index 0fa388dc89e..1277d8d1df2 100644 --- a/packages/python-jpype1/PKGBUILD +++ b/packages/python-jpype1/PKGBUILD @@ -5,9 +5,9 @@ pkgname=python-jpype1 _pkgname=${pkgname#python-} pkgver=1.5.0 pkgrel=1 -pkgdesc="Python to Java bridge, an effort to allow Python programs full access to Java class libraries" +pkgdesc='Python to Java bridge, an effort to allow Python programs full access to Java class libraries.' arch=('x86_64') -url="https://github.com/jpype-project/jpype" +url='https://github.com/jpype-project/jpype' license=('Apache-2.0') depends=('python' 'python-typing_extensions' 'python-packaging' 'java-runtime') makedepends=('python-setuptools' 'ant') @@ -16,7 +16,6 @@ source=("https://github.com/jpype-project/jpype/archive/JPype1-$pkgver.tar.gz") sha512sums=('7c3c8434dd07743d0a0b4176c13f8d82b2f042c25925912e905c92e06de30721f2b1788683f9d547bcb7b66f767f565298ead4c940d8109bc92e8c5824c8e1f5') build() { - ls cd "jpype-$pkgver" python setup.py build diff --git a/packages/python-mdutils/PKGBUILD b/packages/python-mdutils/PKGBUILD index 794285edb37..9f2e9139f42 100644 --- a/packages/python-mdutils/PKGBUILD +++ b/packages/python-mdutils/PKGBUILD @@ -10,7 +10,7 @@ arch=('any') url='https://github.com/didix21/mdutils' license=('MIT') depends=('python') -makedepends=('python-setuptools') +makedepends=('git' 'python-setuptools') source=("git+https://github.com/didix21/$_pkgname.git") sha512sums=('SKIP') diff --git a/packages/python-pyhidra/PKGBUILD b/packages/python-pyhidra/PKGBUILD index 9513eb92d78..1f0ce583968 100644 --- a/packages/python-pyhidra/PKGBUILD +++ b/packages/python-pyhidra/PKGBUILD @@ -10,8 +10,9 @@ arch=('any') url='https://github.com/dod-cyber-crime-center/pyhidra' license=('custom: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.zip::"$url/archive/$pkgver.zip") +makedepends=('python-setuptools' 'python-build' 'python-installer' + 'python-wheel') +source=($_pkgname-$pkgver.zip::"https://github.com/dod-cyber-crime-center/pyhidra/archive/$pkgver.zip") sha512sums=('bf8f43436fec0eb340ca13ca415a9ed861dab3c50c54ca1a24c5e148c13883979164f02b58d5abbb56b112a99672d8ad25fe6a0ccf1ad4368a0334fa72aaa3d0') build() {