~dricottone/huttese-apk

ref: b6bc81fb94fe567de69d69f0a25bcc9df0770bb2 huttese-apk/sr.ht/go-msgauth/APKBUILD -rw-r--r-- 1.4 KiB
b6bc81fb — Drew DeVault go-msgauth: upgrade to 0.6.6 2 years ago
                                                                                
5918c901 Drew DeVault
b6bc81fb Drew DeVault
a38916ee Drew DeVault
5918c901 Drew DeVault
a38916ee Drew DeVault
b6bc81fb Drew DeVault
fa795188 Drew DeVault
a38916ee Drew DeVault
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=go-msgauth
pkgver=0.6.6
pkgrel=0
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"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/emersion/go-msgauth/archive/v$pkgver.tar.gz
	dkim-milter.confd
	dkim-milter.initd
"
subpackages="$pkgname-openrc"

build() {
	go mod vendor
	for bin in dkim-milter dkim-verify dkim-keygen dmarc-lookup
	do
		go build \
			-trimpath \
			-mod=vendor \
			-ldflags "-extldflags $LDFLAGS" \
			./cmd/$bin
	done
}

check() {
	go test ./...
}

package() {
	for bin in dkim-milter dkim-verify dkim-keygen dmarc-lookup
	do
		install -Dm755 $bin "$pkgdir"/usr/bin/$bin
	done

	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="
b6bbe954daa246dd393f38cc6cbc45e5b1c90b0eb913ced98166e0d5e92939d59b62780c2a3eb2cf94696af86b62d2a201a257e87c8c23072fdcedbe0810ac46  go-msgauth-0.6.6.tar.gz
5a213a85bab469b4ee6a144eac69ab452a791886d7faaa46da1f12a9f03248eea1bf1118f637cf282e6c49c9b432c57de2651fb3f33bc3e4ad9f40dde6490aa5  dkim-milter.confd
8483e40792067db6e9e43563cc02d1c28f4fe74d10d43722a4dbce2e4ec6a4daa391f6aa1b428e76ddddbd2a2fa07bd5080a94d8264d1fd5a30c1659726f9de2  dkim-milter.initd
"