diff options
author | AdmiringWorm | 2019-04-13 19:43:56 +0200 |
---|---|---|
committer | AdmiringWorm | 2019-04-13 19:47:07 +0200 |
commit | 65e9ed2485b6258deedf7ec3d1a4d82eb1d36185 (patch) | |
tree | 1326162d1fa48c8e0667b47d8bf544b749de4427 | |
download | aur-65e9ed2485b6258deedf7ec3d1a4d82eb1d36185.tar.gz |
Inital implementation of build scripts
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 37 |
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..84e725d88bb9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = dnscontrol + pkgdesc = Synchronize your DNS to multiple providers from a simple DSL + pkgver = 0.2.8 + pkgrel = 1 + url = https://stackexchange.github.io/dnscontrol/ + arch = x86_64 + license = GPL + makedepends = go-pie + depends = glibc + provides = dnscontrol=0.2.8 + source = dnscontrol-0.2.8.tar.gz::https://github.com/StackExchange/dnscontrol/archive/v0.2.8.tar.gz + sha256sums = 87018f5d05f407ab30db782f26d0b42cf80b340de1e695467c193ca9446d6c5e + +pkgname = dnscontrol + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..8f31a5665867 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.log +pkg/ +src/
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bd0046e0540c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: AdmiringWorm <kim.nordmo@gmail.com> +pkgname=dnscontrol +pkgver=0.2.8 +pkgrel=1 +pkgdesc="Synchronize your DNS to multiple providers from a simple DSL " +arch=('x86_64') +url="https://stackexchange.github.io/${pkgname}/" +license=('GPL') +depends=('glibc') +makedepends=('go-pie') +provides=("${pkgname}=${pkgver}") + +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/StackExchange/${pkgname}/archive/v${pkgver}.tar.gz" +) + +sha256sums=('87018f5d05f407ab30db782f26d0b42cf80b340de1e695467c193ca9446d6c5e') + +prepare(){ + mkdir -p gopath/src/github.com/StackExchange + ln -rTsf $pkgname-$pkgver gopath/src/github.com/StackExchange/dnscontrol +} + +build() { + export GOPATH="$srcdir"/gopath + cd gopath/src/github.com/StackExchange/dnscontrol + + go build \ + -gcflags "all=-trimpath=$GOPATH" \ + -asmflags "all=-trimpath=$GOPATH" \ + -ldflags "-extldflags ${LDFLAGS}" \ + -v . +} + +package() { + install -Dm755 gopath/src/github.com/StackExchange/dnscontrol/$pkgname "$pkgdir"/usr/bin/$pkgname +} |