blob: 9d19422db1eb605fb832c7bb26dc45b1b3866468 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Justin Berthault <justin.berthault@zaclys.net>
pkgname=blocky
pkgver=0.15
pkgrel=1
pkgdesc="DNS proxy as ad-blocker for local network"
url="https://github.com/0xERR0R/blocky"
license="Apache-2.0"
arch="all"
options="net"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/0xERR0R/blocky/archive/v$pkgver.tar.gz"
build() {
go get github.com/swaggo/swag/cmd/swag@v1.6.5
make build
}
check() {
make test
}
package() {
install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
# blocky will not start if its log directory is missing
mkdir -p "$pkgdir"/var/log/blocky
}
sha512sums="
95e60fe059382bcb42cd77c595ac88b29cfae7d9ec40110d57b6b7606bb8a3c8e784bc7bbd5ddfd9551ce22c325a2c36bc3444cea2bde489ec2deaf686455e11 blocky-0.15.tar.gz
"
|