~dricottone/huttese-apk

ref: 5918c901bff725493174ea2780f7c225dfe8eea4 huttese-apk/sr.ht/go-msgauth/APKBUILD -rw-r--r-- 1.4 KiB
5918c901 — Drew DeVault go-msgauth: new aport 4 years ago
                                                                                
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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=go-msgauth
pkgver=0.6.1
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="be6c39203bb2dd772299539a4eeda9adf61da58c7cf2dba09f37cd19a7455984de567a7d1707ad4b14d6fc3366fb65cdeb42c9576c9785b9a56f103f8540776b  go-msgauth-0.6.1.tar.gz
e6249d80ada350a05d647b97617113e966c18f837d3edb9c0a85952dd9076d6b9aa6a2ba30e73baae029c380983f92d40a3148f95b39ad6347a2a4824849700b  dkim-milter.confd
944dcac8b22e113fcdfd67c76f5183f4ad0f320d7888f695c7854bb05eaf71af898eabd5857aff9447602fd9b0cb58ba9029ee878a330e35a19d19bfbf6ee139  dkim-milter.initd"