1 # Maintainer: Morten Linderud <foxboron@archlinux.org>
7 pkgdesc="name resolution for containers"
9 url="https://github.com/containers/dnsname"
11 makedepends=("git" "go")
14 _commit=18822f9a4fb35d1349eb256f4cd2bfd372474d84 #refs/tags/v1.3.1^{}
15 source=("git+${url}.git#commit=${_commit}")
16 validpgpkeys=("B7DBDCA456F7335E91F1C25CD3624C551D0515C4")
21 git describe --tags | sed 's/^v//;s/-/+/g'
26 export CGO_LDFLAGS="${LDFLAGS}"
27 export CGO_CFLAGS="${CFLAGS}"
28 export CGO_CPPFLAGS="${CPPFLAGS}"
29 export CGO_CXXFLAGS="${CXXFLAGS}"
30 export GOFLAGS="-buildmode=pie -ldflags=-linkmode=external -trimpath -mod=readonly -modcacherw"
41 make PREFIX="/usr" LIBEXECDIR="/usr/lib/cni" DESTDIR="${pkgdir}" install
42 install -vDm 755 "$pkgdir/usr/lib/cni/dnsname" -t "$pkgdir/opt/cni/bin/"