diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..21262878330 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,9 @@ +python-cstruct +python-lzallright +jefferson +python-plotext +python-pyfatfs +python-pyperscan +python-ubi-reader +python-unblob-native +unblob \ No newline at end of file diff --git a/packages/jefferson/PKGBUILD b/packages/jefferson/PKGBUILD new file mode 100644 index 00000000000..396e3e6f6b9 --- /dev/null +++ b/packages/jefferson/PKGBUILD @@ -0,0 +1,50 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=jefferson +pkgver=v0.4.5.r0.g96dd903 +pkgrel=1 +pkgdesc='JFFS2 filesystem extraction tool.' +arch=('any') +groups=('blackarch' 'blackarch-forensic' 'blackarch-reversing') +url='https://github.com/onekey-sec/jefferson' +license=('MIT') +depends=('python' 'python-click' 'python-cstruct' 'python-lzallright') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/onekey-sec/$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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + 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 +} + diff --git a/packages/python-cstruct/PKGBUILD b/packages/python-cstruct/PKGBUILD new file mode 100644 index 00000000000..af12a9df84b --- /dev/null +++ b/packages/python-cstruct/PKGBUILD @@ -0,0 +1,39 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-cstruct +pkgver=v5.3.r1.g1236e1e +pkgrel=1 +pkgdesc='C-style structs for Python.' +arch=('any') +url='https://github.com/andreax79/python-cstruct' +license=('MIT') +depends=('python') +makedepends=('git' 'python-setuptools') +options=(!emptydirs) +source=("git+https://github.com/andreax79/$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 +} + diff --git a/packages/python-lzallright/PKGBUILD b/packages/python-lzallright/PKGBUILD new file mode 100644 index 00000000000..4b0a69244d6 --- /dev/null +++ b/packages/python-lzallright/PKGBUILD @@ -0,0 +1,52 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-lzallright +_pkgname=${pkgname#python-} +pkgver=v0.2.5.r0.gcfa42fa +pkgrel=1 +pkgdesc='Python binding for LZ library.' +arch=('any') +url='https://github.com/vlaci/lzallright' +license=('MIT') +depends=('python') +makedepends=('git' 'python-build' 'python-pip' 'rust') +options=(!emptydirs) +source=("git+https://github.com/vlaci/$_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 + + export CXXFLAGS="$CXXFLAGS -ffat-lto-objects" + python -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + 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 +} + diff --git a/packages/python-plotext/PKGBUILD b/packages/python-plotext/PKGBUILD new file mode 100644 index 00000000000..4aa78191980 --- /dev/null +++ b/packages/python-plotext/PKGBUILD @@ -0,0 +1,40 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-plotext +_pkgname=${pkgname#python-} +pkgver=5.3.2.r0.g4d19108 +pkgrel=1 +pkgdesc='Plotting on terminal.' +arch=('any') +url='https://github.com/piccolomo/plotext' +depends=('python') +makedepends=('git' 'python-setuptools') +license=('MIT') +options=(!emptydirs) +source=("git+https://github.com/piccolomo/$_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 +} + diff --git a/packages/python-pyfatfs/PKGBUILD b/packages/python-pyfatfs/PKGBUILD new file mode 100644 index 00000000000..6f5168daa04 --- /dev/null +++ b/packages/python-pyfatfs/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-pyfatfs +_pkgname=${pkgname#python-} +pkgver=v1.1.0.r0.g5590fb8 +pkgrel=1 +pkgdesc='Python based FAT12/FAT16/FAT32 implementation with VFAT support.' +arch=('x86_64' 'aarch64') +url='https://github.com/nathanhi/pyfatfs' +license=('MIT') +depends=('python' 'python-fs') +makedepends=('git' 'python-build' 'python-pip') +options=(!emptydirs) +source=("git+https://github.com/nathanhi/$_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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + 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 +} + diff --git a/packages/python-pyperscan/PKGBUILD b/packages/python-pyperscan/PKGBUILD new file mode 100644 index 00000000000..fc64ead2210 --- /dev/null +++ b/packages/python-pyperscan/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-pyperscan +_pkgname=${pkgname#python-} +pkgver=v0.3.0.r8.g96f73ad +pkgrel=1 +pkgdesc='Python binding for Hyperscan.' +arch=('any') +url='https://github.com/vlaci/pyperscan' +license=('Apache-2.0' 'MIT') +depends=('python' 'hyperscan') +makedepends=('git' 'python-build' 'python-pip' 'rust') +options=(!emptydirs) +source=("git+https://github.com/vlaci/$_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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + 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 +} + diff --git a/packages/python-ubi-reader/PKGBUILD b/packages/python-ubi-reader/PKGBUILD new file mode 100644 index 00000000000..5be0eebeca2 --- /dev/null +++ b/packages/python-ubi-reader/PKGBUILD @@ -0,0 +1,52 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-ubi-reader +_pkgname=ubi_reader +pkgver=v0.8.9.r2.gcc7225e +pkgrel=1 +pkgdesc='Collection of Python scripts for reading information about and extracting data from UBI and UBIFS images.' +arch=('any') +groups=('blackarch' 'blackarch-forensic' 'blackarch-reversing') +url='https://github.com/onekey-sec/ubi_reader' +license=('GPL-3.0') +depends=('python' 'python-lzallright') +makedepends=('git' 'python-build' 'python-pip') +options=(!emptydirs) +source=("git+https://github.com/onekey-sec/$_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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + 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 +} + diff --git a/packages/python-unblob-native/PKGBUILD b/packages/python-unblob-native/PKGBUILD new file mode 100644 index 00000000000..03511b5ad9e --- /dev/null +++ b/packages/python-unblob-native/PKGBUILD @@ -0,0 +1,51 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-unblob-native +_pkgname=${pkgname#python-} +pkgver=v0.1.5.r6.gb9463ad +pkgrel=1 +pkgdesc='Performance critical parts of Unblob.' +arch=('any') +url='https://github.com/onekey-sec/unblob-native' +license=('MIT') +depends=('python') +makedepends=('git' 'python-build' 'python-pip') +options=(!emptydirs) +source=("git+https://github.com/onekey-sec/$_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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $_pkgname + + 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 +} + diff --git a/packages/unblob/PKGBUILD b/packages/unblob/PKGBUILD new file mode 100644 index 00000000000..b3945c46926 --- /dev/null +++ b/packages/unblob/PKGBUILD @@ -0,0 +1,55 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=unblob +pkgver=24.11.13.r4.g325c3e1 +pkgrel=1 +pkgdesc='Extract files from any kind of container formats.' +arch=('any') +groups=('blackarch' 'blackarch-forensic' 'blackarch-reversing') +url='https://github.com/onekey-sec/unblob' +license=('MIT') +depends=('python' 'python-click' 'python-dissect.cstruct' 'python-attrs' + 'python-structlog' 'python-arpy' 'python-rarfile' 'python-ubi-reader' + 'python-plotext' 'python-pluggy' 'python-python-magic' + 'python-pyperscan' 'python-lark' 'python-lief' 'python-cryptography' + 'python-treelib' 'python-unblob-native' 'python-rich' + 'python-pyfatfs' 'jefferson' 'lz4') +makedepends=('git' 'python-build' 'python-pip') +source=("git+https://github.com/onekey-sec/$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 -m build --wheel --outdir="$startdir/dist" +} + +package() { + cd $pkgname + + 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 +} +