summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63974920962d20626b198b67560c6ce4bc0d2429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: spikecodes <19519553+spikecodes@users.noreply.github.com>
pkgname=sdns-git
_pkgname=${pkgname%-git}
pkgver=r659.3089a62
pkgrel=1
pkgdesc="Privacy important, fast, recursive dns resolver server with dnssec support"
arch=('x86_64')
url="https://github.com/semihalev/sdns"
license=("MIT")
makedepends=("go")
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("${_pkgname}::git+${url}")
sha256sums=("SKIP")

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${_pkgname}"
	go build -o sdns .
}

package() {
	cd "${_pkgname}"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
	install -Dm755 sdns "$pkgdir/usr/bin/${_pkgname}"
}