blob: 6dbe9aba5ca772b357c55626f5187a00ecf566e8 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
# Previous maintainer: skydrome <skydrome at- protonmail dotcom>
pkgname=coredns-git
pkgver=1.12.0.r3.g177253340
pkgrel=1
pkgdesc="A DNS server that chains plugins"
arch=('i686' 'x86_64')
url="https://coredns.io/"
license=('Apache-2.0')
depends=('glibc')
makedepends=('git' 'go')
provides=("coredns=$pkgver")
conflicts=('coredns')
source=("git+https://github.com/coredns/coredns.git"
"coredns-sysusers.conf"
"coredns-tmpfiles.conf"
"coredns.service")
sha256sums=('SKIP'
'f4fd89dcb36f52466ebb1a2ae435dc960cdc828a071f3aaae1d83a39696bff30'
'20052dded9a02e05013a602e597002ee2a003ecfab3309d30969c28207fc5b72'
'8a5689eeba6c48945fec84dd0163fdf3d7118aa98ad511992501637f411b1a5c')
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
pkgver() {
cd "coredns"
_tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1)
_rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
}
build() {
cd "coredns"
go build \
./...
}
check() {
cd "coredns"
#go test \
# ./...
}
package() {
cd "coredns"
GOBIN="$pkgdir/usr/bin" \
go install ./
install -Dm644 man/*.1 -t "$pkgdir/usr/share/man/man1"
install -Dm644 man/*.5 -t "$pkgdir/usr/share/man/man5"
install -Dm644 man/*.7 -t "$pkgdir/usr/share/man/man7"
install -Dm644 "$srcdir/coredns-sysusers.conf" "$pkgdir/usr/lib/sysusers.d/coredns.conf"
install -Dm644 "$srcdir/coredns-tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/coredns.conf"
install -Dm644 "$srcdir/coredns.service" -t "$pkgdir/usr/lib/systemd/system"
}
|