diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-05 14:30:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-05 14:30:08 +0000 |
commit | 8b409c8009e9c99338f8454d627dd5d67d7407f6 (patch) | |
tree | 482dde150cf1e95af833165bacfeadb67181b6a2 /community/ospd-ancor | |
parent | 7338a4c2ecb161d10151b430c0ba372a5cf1dae7 (diff) | |
download | aports-8b409c8009e9c99338f8454d627dd5d67d7407f6.tar.bz2 aports-8b409c8009e9c99338f8454d627dd5d67d7407f6.tar.xz |
community/ospd-ancor: added check, modernized APKBUILD
Diffstat (limited to 'community/ospd-ancor')
-rw-r--r-- | community/ospd-ancor/APKBUILD | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/community/ospd-ancor/APKBUILD b/community/ospd-ancor/APKBUILD index f60ab9a6ed..da2c80aaa5 100644 --- a/community/ospd-ancor/APKBUILD +++ b/community/ospd-ancor/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=ospd-ancor pkgver=1.0.0 -pkgrel=1 +pkgrel=2 _pkgid=2005 pkgdesc="OSP server implementation to allow OpenVAS to get scan results from an Ancor server" url="http://openvas.org/" @@ -10,20 +10,22 @@ arch="noarch" license="GPLV2+" depends="python3 py3-requests ospd" makedepends="python3-dev" -install="" -subpackages="" source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-$pkgver.tar.gz" - builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" - python3 setup.py build || return 1 + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check } package() { cd "$builddir" - python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } |