aports/testing/anubis/APKBUILD
2025-04-11 19:40:50 +02:00

33 lines
809 B
Text

maintainer="fossdd <fossdd@pwned.life>"
pkgname=anubis
pkgver=1.15.2
pkgrel=1
pkgdesc="Block AI scrapers using a sha256 proof-of-work challenge"
url="https://github.com/TecharoHQ/anubis"
arch="all"
license="MIT"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/TecharoHQ/anubis/archive/refs/tags/v$pkgver.tar.gz"
options="net" # go modules
# secfixes:
# 1.15.2-r0:
# - CVE-2025-24369
build() {
go build ./cmd/anubis
}
check() {
go test -v ./cmd/anubis/...
}
package() {
install -Dm755 anubis -t "$pkgdir"/usr/bin/
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
53b3b9b19e4445d8116f68f446d7dbf8bdde70c3741661c0d9897afdd74bfd20b81b35ed2ff956f4d8363a4ec4ce8e7617c9c240d739ac5e04d41cc3a144c4e7 anubis-1.15.2.tar.gz
"