~dricottone/huttese-apk

ref: 35ca3fd62620fa99240f9b4062bded7a3b3cff81 huttese-apk/sr.ht/go-msgauth/APKBUILD -rw-r--r-- 1.4 KiB
35ca3fd6 — Drew DeVault go-msgauth: fix error in init.d script 4 years ago
                                                                                
5918c901 Drew DeVault
35ca3fd6 Drew DeVault
5918c901 Drew DeVault
35ca3fd6 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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=go-msgauth
pkgver=0.6.1
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"
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
50c4731d923ad003cc3bfb54a7f345648777079e26d2ff9189c0af818cbd836dca02c0affacff59736c3b347bc1d21658946a0514153214f181ce0ea674772f5  dkim-milter.initd"