Add 'awl-dns-git/' from commit '3e4edc45540b174e41d5fc0352346c2c8626247f'

git-subtree-dir: awl-dns-git
git-subtree-mainline: 85951db955
git-subtree-split: 3e4edc4554
This commit is contained in:
Sam Therapy 2024-03-12 21:39:42 +01:00
commit 3675712d48
2 changed files with 65 additions and 0 deletions

23
awl-dns-git/.SRCINFO Normal file
View file

@ -0,0 +1,23 @@
pkgbase = awl-dns-git
pkgdesc = A DNS client
pkgver = 0.6.7.r4.g45d1aaf
pkgrel = 1
url = https://git.froth.zone/sam/awl
arch = i686
arch = pentium4
arch = x86_64
arch = arm
arch = armv6h
arch = armv7h
arch = aarch64
license = BSD
makedepends = git
makedepends = go>=1.20
makedepends = scdoc
provides = awl-dns
conflicts = awl-dns
options = !lto
source = awl-dns-git::git+https://git.froth.zone/sam/awl.git
sha256sums = SKIP
pkgname = awl-dns-git

42
awl-dns-git/PKGBUILD Normal file
View file

@ -0,0 +1,42 @@
# Maintainer: Sam Therapy <sam at samtherapy dot net>
pkgname=awl-dns-git
pkgver=0.6.7.r4.g45d1aaf
pkgrel=1
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
pkgdesc="A DNS client"
url="https://git.froth.zone/sam/awl"
options=(!lto)
license=('BSD')
makedepends=(
'git'
'go>=1.20'
'scdoc'
)
provides=("${pkgname%-*}")
conflicts=("${pkgname%-*}")
source=("${pkgname}::git+https://git.froth.zone/sam/awl.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/$pkgname"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-s -ldflags=-w -ldflags=-linkmode=external -ldflags=-X=main.version=${pkgver} -mod=readonly -modcacherw"
export CGO_ENABLED=1
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr"
}
package() {
cd "$srcdir/$pkgname"
make VERSION=$pkgver DESTDIR="$pkgdir" PREFIX="/usr" install
install -Dm644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}