summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGuillaume Lefranc2019-11-23 12:30:49 +0100
committerGuillaume Lefranc2019-11-23 12:30:49 +0100
commit01620129143824b282a85a7114892a0550e5747e (patch)
tree86d89ec99b1ecfdcbf087a15b4f933721a7a14f1 /PKGBUILD
downloadaur-01620129143824b282a85a7114892a0550e5747e.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4b9dd73b698
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Guillaume Lefranc <guillaume@signal18.io>
+pkgname=nextdns
+pkgver=1.1.8
+pkgrel=1
+pkgdesc='NextDNS DNS-over-HTTPS client'
+arch=('x86_64')
+url="https://github.com/nextdns/nextdns"
+license=('MIT')
+makedepends=('go-pie')
+source=("$url/archive/v$pkgver.tar.gz")
+sha256sums=('aceaa6108feb86f678e3a26e1d558e99799a8e62d5bccd1af3d2c98754a0c517')
+install=$pkgname.install
+
+build() {
+ cd $pkgname-$pkgver
+ go build \
+ -trimpath \
+ -ldflags "-X main.version=$pkgver -extldflags $LDFLAGS" \
+ -o $pkgname .
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+}