diff options
Diffstat (limited to 'testing/dnscontrol/APKBUILD')
-rw-r--r-- | testing/dnscontrol/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/dnscontrol/APKBUILD b/testing/dnscontrol/APKBUILD new file mode 100644 index 00000000000..f35cf0f9e5a --- /dev/null +++ b/testing/dnscontrol/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Nicolas Lorin <androw95220@gmail.com> +# Maintainer: Nicolas Lorin <androw95220@gmail.com> +pkgname=dnscontrol +pkgver=4.9.0 +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=" +42dec7495e00595fb8d6ec174b45e87505a874a7f1ed286040a5ce0718cb9dee8b9a903f8c3f9f7c30a2e4e162a938b490667b397fe3ea6df79baa9df4036b58 dnscontrol-4.9.0.tar.gz +5503f149662dcf4d8548bc7e60bf566b2c4e7580593a15cca8f344f37103f413b860f4cb25ed38a620cf650528f133e4dc4d51824993b4e314acba5308a225d4 dnsconfig.js +" |