diff options
author | Jonhnny Weslley | 2015-07-04 15:06:15 -0300 |
---|---|---|
committer | Jonhnny Weslley | 2015-07-04 15:07:47 -0300 |
commit | 5c0a54d288534cf1888213161d085d74b7b4f0a8 (patch) | |
tree | b16cf30fc514863b2a6c23dbf372877c3bda0fa1 /PKGBUILD | |
download | aur-localdns.tar.gz |
initial import: 0.1.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..31a9bd716581 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Jonhnny Weslley <jw@jonhnnyweslley.net> +pkgname=localdns +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A DNS for local development" +arch=('i686' 'x86_64') +url="https://github.com/jweslley/$pkgname" +license=('MIT') +depends=('glibc') +makedepends=('go') +options=('!strip' '!emptydirs') +install=$pkgname.install +source=("https://github.com/jweslley/$pkgname/archive/v$pkgver.tar.gz") +md5sums=('e040cd45d1ca14d554e1be1d0a39d2ed') + +build() { + cd "$pkgname-$pkgver" + export GOPATH="$srcdir" + export GOBIN="." + + go get ./... + go build +} + +package() { + cd "$pkgname-$pkgver" + + install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" + install -Dm644 ext/linux/localdns.service "$pkgdir"/usr/lib/systemd/system/localdns.service + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |