aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dnscontrol/APKBUILD
blob: 03243a559c1c5d160b875c3de90ae3d5c98aa892 (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
34
35
# Contributor: Nicolas Lorin <androw95220@gmail.com>
# Maintainer: Nicolas Lorin <androw95220@gmail.com>
pkgname=dnscontrol
pkgver=4.8.2
pkgrel=0
pkgdesc="Synchronize your DNS to multiple providers from a simple DSL"
url="https://stackexchange.github.io/dnscontrol/"
arch="all"
license="MIT"
makedepends="go"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/StackExchange/dnscontrol/archive/v$pkgver.tar.gz
	dnsconfig.js"

export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"

build() {
	go build
}

check() {
	./dnscontrol check --config ../dnsconfig.js
}

package() {
	install -Dm755 dnscontrol "$pkgdir"/usr/bin/dnscontrol
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
e6ae950e7fd6f39b947466000d84257a0693b5cdd3037bd4c5c4a963498dbb4cecf833474ced1607284403ae6f71b5d30e312be7a8fb9a0ad5730fef0973a547  dnscontrol-4.8.2.tar.gz
5503f149662dcf4d8548bc7e60bf566b2c4e7580593a15cca8f344f37103f413b860f4cb25ed38a620cf650528f133e4dc4d51824993b4e314acba5308a225d4  dnsconfig.js
"