diff options
Diffstat (limited to 'community/gvm-tools/APKBUILD')
-rw-r--r-- | community/gvm-tools/APKBUILD | 35 |
1 files changed, 23 insertions, 12 deletions
diff --git a/community/gvm-tools/APKBUILD b/community/gvm-tools/APKBUILD index 1b0c26f64e3..4e0294173ce 100644 --- a/community/gvm-tools/APKBUILD +++ b/community/gvm-tools/APKBUILD @@ -1,28 +1,39 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=gvm-tools -pkgver=21.1.0 -pkgrel=0 +# follow the same version of py3-gvm +pkgver=24.1.0 +pkgrel=1 pkgdesc="Collection of tools for remote controlling a OpenVAS / Greenbone" url="https://github.com/greenbone/gvm-tools" arch="noarch" -license="GPL" -depends="python3 py3-dialog py3-defusedxml py3-paramiko py3-lxml" -makedepends="py3-setuptools pyproject2setuppy" -source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvm-tools/archive/v$pkgver.tar.gz -create-setuppy.patch" +license="GPL-3.0-or-later" +depends="python3 py3-gvm py3-lxml" +makedepends="py3-gpep517 py3-installer py3-poetry-core py3-wheel" +checkdepends="py3-gvm py3-pytest" +subpackages="$pkgname-pyc" +source="$pkgname-$pkgver.tar.gz::https://github.com/greenbone/gvm-tools/archive/v$pkgver.tar.gz" build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 setup.py check + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + # outdated snapshot compare + .testenv/bin/python3 -m pytest --ignore tests/test_parser.py } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + mkdir -p "$pkgdir"/usr/share/$pkgname/scripts + cp $builddir/scripts/*.py "$pkgdir"/usr/share/$pkgname/scripts/ } -sha512sums="4a02d84045642d018a52e0a17d9a4b683108e1140c512daed48403e56e996dd2487ffe914bc2fbf454c244c51500cff5a934e43feee18f76088ba1912ef84c3f gvm-tools-21.1.0.tar.gz -716d1298104d924170041d69708fc417ec6d2bf96197c7c2f77397584b6c67881190272adbf224431be400a2e391d3d3e213a340411c0b9be9e6c9e097eedd5f create-setuppy.patch" +sha512sums=" +6138c6c85421c7b011b73c2c857e9481cd46622ad3627a8d85c50563ebbd3c6d5cae80f43118ec85ef243fb965dcbe1cd7c1df29326f1d81b21c56ad117bef28 gvm-tools-24.1.0.tar.gz +" |