Skip to content

Commit 5d1c0f6

Browse files
dogknowsnxleahneukirchen
authored andcommitted
asncounter: fix license, enable tests
1 parent 124f2f1 commit 5d1c0f6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

srcpkgs/asncounter/template

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
# Template file for 'asncounter'
22
pkgname=asncounter
33
version=0.5.0
4-
revision=1
4+
revision=2
55
build_style=python3-pep517
66
hostmakedepends="pandoc python3-setuptools python3-setuptools_scm python3-wheel"
77
makedepends="python3-devel"
88
depends="python3-pyasn"
9+
checkdepends="python3-pyasn python3-pytest python3-prometheus_client"
910
short_desc="Tool to group IP addresses by ASN, useful for fighting bot farms"
1011
maintainer="Orphaned <orphan@voidlinux.org>"
11-
license="GPL-3.0-or-later"
12+
license="AGPL-3.0-or-later"
1213
homepage="https://gitlab.com/anarcat/asncounter"
1314
distfiles="https://gitlab.com/anarcat/asncounter/-/archive/$version/asncounter-$version.tar.gz"
1415
checksum=4a4184afad23e1fa9dcc2862644707c075f59e013d988aaf0cc7555f79c982ca
1516

1617
pre_build() {
17-
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ASNCOUNTER="$version_$revision"
18+
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ASNCOUNTER="$version"
1819
}
1920

2021
post_install() {
2122
pandoc --standalone --to man asncounter.1.md > asncounter.1
2223
vman asncounter.1
24+
vlicense LICENSE
2325
}

0 commit comments

Comments
 (0)