mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-20 21:12:43 +01:00
https://github.com/Xe/x/tree/master/cmd/anubis Block AI scrapers using a sha256 proof-of-work challenge
30 lines
761 B
Plaintext
30 lines
761 B
Plaintext
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=anubis
|
|
pkgver=1.10.0_git20250303
|
|
pkgrel=0
|
|
_commit=19f0d3d0c1b171ebc25176f777d034ffaa98a4be
|
|
pkgdesc="Block AI scrapers using a sha256 proof-of-work challenge"
|
|
url="https://github.com/Xe/x/tree/master/cmd/anubis"
|
|
arch="all"
|
|
license="CC0-1.0"
|
|
makedepends="go"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Xe/x/archive/$_commit.tar.gz"
|
|
builddir="$srcdir/x-$_commit"
|
|
options="net" # go modules
|
|
|
|
build() {
|
|
go build ./cmd/anubis
|
|
}
|
|
|
|
check() {
|
|
go test -v ./cmd/anubis/...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 anubis -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
c01660644fca2d51803475032727f3c64a146250b626eaf28b295bfda536bb2270d880dce21985482d888602b80d1231f05da3bce27d344a8be85d810b4d48c9 anubis-1.10.0_git20250303.tar.gz
|
|
"
|