diff --git a/packages/ghunt/PKGBUILD b/packages/ghunt/PKGBUILD new file mode 100644 index 00000000000..de0e3f86ab4 --- /dev/null +++ b/packages/ghunt/PKGBUILD @@ -0,0 +1,67 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=ghunt +pkgver=v2.2.0.r11.g5782248 +pkgrel=1 +pkgdesc='An offensive OSINT Google framework.' +arch=('any') +groups=('blackarch' 'blackarch-recon') +url='https://github.com/mxrch/GHunt' +license=('AGPL-3.0-only') +depends=('python' # https://github.com/mxrch/GHunt/blob/master/pyproject.toml + 'python-geopy' + 'python-httpx' + 'python-imagehash' + 'python-pillow' + 'python-dateutil' + 'python-rich' + 'python-beautifultable' + 'python-beautifulsoup4' + 'python-alive-progress' + 'python-protobuf' + 'python-autoslot' + 'python-humanize' + 'python-inflection' + 'python-jsonpickle' + 'python-packaging' + 'python-rich-argparse' + 'python-dnspython') +makedepends=('git' 'python-build' 'python-pip') +source=("$pkgname::git+$url.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-autoslot/PKGBUILD b/packages/python-autoslot/PKGBUILD new file mode 100644 index 00000000000..26650268d59 --- /dev/null +++ b/packages/python-autoslot/PKGBUILD @@ -0,0 +1,40 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-autoslot +_pkgname=${pkgname#python-} +pkgver=2024.12.1 +pkgrel=1 +pkgdesc='Automatic __slots__ for your Python classes.' +arch=('any') +url='https://github.com/cjrh/autoslot' +license=('Apache-2.0') +depends=('python') +makedepends=('python-build' 'python-pip') +options=(!emptydirs) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha512sums=('a82d40a8475bd0035c9e4bcacc19274fba9468dcfbee61245a46161a51c2b5ebebbece57b9bc2c2c5fc44020325546ff329913a28951d51a52f9215ecb16f948') + +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 +} + diff --git a/packages/python-rich-argparse/PKGBUILD b/packages/python-rich-argparse/PKGBUILD new file mode 100644 index 00000000000..96539c54f3f --- /dev/null +++ b/packages/python-rich-argparse/PKGBUILD @@ -0,0 +1,40 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=python-rich-argparse +_pkgname=rich_argparse +pkgver=1.6.0 +pkgrel=1 +pkgdesc='Rich help formatters for argparse and optparse.' +arch=('any') +url='https://github.com/hamdanal/rich-argparse' +license=('MIT') +depends=('python' 'python-rich') +makedepends=('python-build' 'python-pip') +options=(!emptydirs) +source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha512sums=('503ff4e37b043a5ef84160cca1ad326a4642b820477151e1646077073018353e21bc532254ca1f9bac8014c9fa7f35036d599efb2f29cc5da690053ad12cc5cb') + +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 +} +