aports/testing/sqlmap/APKBUILD

58 lines
1.5 KiB
Text
Raw Permalink Normal View History

2022-09-06 20:16:38 +03:00
# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
2022-07-11 22:25:54 +03:00
pkgname=sqlmap
2025-04-14 00:46:01 +02:00
pkgver=1.9.4
2024-02-06 23:05:30 +01:00
pkgrel=0
2022-07-11 22:25:54 +03:00
pkgdesc="Automatic SQL injection and database takeover tool"
url="https://sqlmap.org/"
arch="noarch"
license="GPL-2.0-or-later"
2024-01-16 23:11:59 +01:00
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"
2023-04-21 23:40:40 +02:00
subpackages="$pkgname-pyc"
2022-07-11 22:25:54 +03:00
source="https://pypi.python.org/packages/source/s/sqlmap/sqlmap-$pkgver.tar.gz
reduce-amount-of-third-party-dependencies.patch
"
2022-11-24 07:48:05 +00:00
options="!check" # fail with py311 for some reason
2022-07-11 22:25:54 +03:00
prepare() {
default_prepare
2022-07-11 22:25:54 +03:00
# remove unneeded thirdparty moduels (keep patch small)
cd sqlmap/thirdparty
rm -rf chardet bottle beautifulsoup colorama keepalive magic odict \
pydes six termcolor
}
build() {
2024-01-16 23:11:59 +01:00
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
2022-07-11 22:25:54 +03:00
}
check() {
2024-01-16 23:11:59 +01:00
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
2022-07-11 22:25:54 +03:00
}
package() {
2024-01-16 23:11:59 +01:00
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
2022-07-11 22:25:54 +03:00
}
sha512sums="
2025-04-14 00:46:01 +02:00
917f12fcbeb7ce1dfc1334bdf81fe710eaa2ad3707f3ef0d35bc39dd5b67e9aca5c16bfd5dec2fabf4941b19e67460c44093f4746090a1d968db714e25c26176 sqlmap-1.9.4.tar.gz
9befad1a47ca6b876de1e419b4f12d9ac6b9245467d01cfc0c9690997d6d4db02b64b528eec97ffa3a25632a4fae7ebc4c9a371383624cedd33e7a241942526a reduce-amount-of-third-party-dependencies.patch
2022-07-11 22:25:54 +03:00
"