mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 09:54:43 +02:00
60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=go-msgauth
|
|
pkgver=0.7.0
|
|
pkgrel=1
|
|
pkgdesc="Go utilities for DKIM, DMARC, and Authentication-Results"
|
|
url="https://github.com/emersion/go-msgauth"
|
|
arch="all"
|
|
license="MIT"
|
|
install="$pkgname.pre-install"
|
|
makedepends="go"
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/emersion/go-msgauth/archive/v$pkgver.tar.gz
|
|
dkim-milter.confd
|
|
dkim-milter.initd
|
|
"
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
_bins="dkim-milter dkim-verify dkim-keygen dmarc-lookup"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
go mod vendor
|
|
}
|
|
|
|
build() {
|
|
local bin; for bin in $_bins; do
|
|
go build \
|
|
-trimpath \
|
|
-mod=vendor \
|
|
-ldflags "-extldflags \"$LDFLAGS\"" \
|
|
./cmd/$bin
|
|
done
|
|
}
|
|
|
|
check() {
|
|
go test ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 $_bins -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
|
|
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
install -Dm755 "$srcdir"/dkim-milter.initd \
|
|
"$pkgdir"/etc/init.d/dkim-milter
|
|
install -Dm644 "$srcdir"/dkim-milter.confd \
|
|
"$pkgdir"/etc/conf.d/dkim-milter
|
|
}
|
|
|
|
sha512sums="
|
|
f8d6b6556f0161b83631614bee518a55d855a99791a45cdcd02ed644def5f7a017bd8e6a0170c3dbfe245125fd86930aaa0724250e894b6850873704214c9ac6 go-msgauth-0.7.0.tar.gz
|
|
5a213a85bab469b4ee6a144eac69ab452a791886d7faaa46da1f12a9f03248eea1bf1118f637cf282e6c49c9b432c57de2651fb3f33bc3e4ad9f40dde6490aa5 dkim-milter.confd
|
|
8483e40792067db6e9e43563cc02d1c28f4fe74d10d43722a4dbce2e4ec6a4daa391f6aa1b428e76ddddbd2a2fa07bd5080a94d8264d1fd5a30c1659726f9de2 dkim-milter.initd
|
|
"
|