Last active
December 20, 2019 20:06
-
-
Save bvaudour/dec04cead77b662e83542083c625444c to your computer and use it in GitHub Desktop.
nexdns PKDBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
/usr/bin/nextdns install | |
} | |
pre_remove() { | |
systemctl stop nextdns | |
/usr/bin/nextdns uninstall | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=nextdns | |
pkgver=1.3.3 | |
pkgrel=1 | |
pkgdesc='NextDNS DNS-over-HTTPS client' | |
arch=('x86_64') | |
url='https://github.com/nextdns/nextdns' | |
license=('MIT') | |
makedepends=('go') | |
source=("https://github.com/nextdns/nextdns/archive/v${pkgver}.tar.gz") | |
sha256sums=('d3d7a00ba5065f0a4bf1cb982dd6d7c67cdef750fa841bedc3c601434353d47b') | |
install=${pkgname}.install | |
build() { | |
cd "${pkgname}-${pkgver}" | |
GOFLAGS=-mod=vendor | |
go mod vendor | |
go build -o $pkgname . | |
} | |
package() { | |
cd "${pkgname}-${pkgver}" | |
install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment