aports/testing/sqlmap/APKBUILD
2025-11-19 19:04:48 +01:00

58 lines
1.5 KiB
Plaintext

# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=sqlmap
pkgver=1.9.11
pkgrel=0
pkgdesc="Automatic SQL injection and database takeover tool"
url="https://sqlmap.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="
py3-beautifulsoup4
py3-bottle
py3-chardet
py3-colorama
py3-keepalive
py3-magic
py3-pydes
py3-six
py3-termcolor
"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/s/sqlmap/sqlmap-$pkgver.tar.gz
reduce-amount-of-third-party-dependencies.patch
"
options="!check" # fail with py311 for some reason
prepare() {
default_prepare
# remove unneeded thirdparty moduels (keep patch small)
cd sqlmap/thirdparty
rm -rf chardet bottle beautifulsoup colorama keepalive magic odict \
pydes six termcolor
}
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
b23b2c3d0b727c0d213700deebaf934bf6504571492982167459539c5071b8569825247283a60683c5ca737a4ade73827da5b32a2e39caa398cc1e2438c85f30 sqlmap-1.9.11.tar.gz
9befad1a47ca6b876de1e419b4f12d9ac6b9245467d01cfc0c9690997d6d4db02b64b528eec97ffa3a25632a4fae7ebc4c9a371383624cedd33e7a241942526a reduce-amount-of-third-party-dependencies.patch
"