asncounter: fix license, enable tests

This commit is contained in:
dogknowsnx 2025-08-26 22:24:49 +02:00 committed by Leah Neukirchen
parent 124f2f1c8c
commit 5d1c0f63da

View file

@ -1,23 +1,25 @@
# Template file for 'asncounter' # Template file for 'asncounter'
pkgname=asncounter pkgname=asncounter
version=0.5.0 version=0.5.0
revision=1 revision=2
build_style=python3-pep517 build_style=python3-pep517
hostmakedepends="pandoc python3-setuptools python3-setuptools_scm python3-wheel" hostmakedepends="pandoc python3-setuptools python3-setuptools_scm python3-wheel"
makedepends="python3-devel" makedepends="python3-devel"
depends="python3-pyasn" depends="python3-pyasn"
checkdepends="python3-pyasn python3-pytest python3-prometheus_client"
short_desc="Tool to group IP addresses by ASN, useful for fighting bot farms" short_desc="Tool to group IP addresses by ASN, useful for fighting bot farms"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later" license="AGPL-3.0-or-later"
homepage="https://gitlab.com/anarcat/asncounter" homepage="https://gitlab.com/anarcat/asncounter"
distfiles="https://gitlab.com/anarcat/asncounter/-/archive/$version/asncounter-$version.tar.gz" distfiles="https://gitlab.com/anarcat/asncounter/-/archive/$version/asncounter-$version.tar.gz"
checksum=4a4184afad23e1fa9dcc2862644707c075f59e013d988aaf0cc7555f79c982ca checksum=4a4184afad23e1fa9dcc2862644707c075f59e013d988aaf0cc7555f79c982ca
pre_build() { pre_build() {
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ASNCOUNTER="$version_$revision" export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ASNCOUNTER="$version"
} }
post_install() { post_install() {
pandoc --standalone --to man asncounter.1.md > asncounter.1 pandoc --standalone --to man asncounter.1.md > asncounter.1
vman asncounter.1 vman asncounter.1
vlicense LICENSE
} }