aports/testing/mailsec-check/APKBUILD
2025-04-11 19:40:50 +02:00

39 lines
1.3 KiB
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mailsec-check
pkgver=0_git20210729
_commit=a4aa6329a96ae6403791a51ddb8ac880af5b4eb3
pkgrel=25
pkgdesc="Utility to analyze state of deployment of security-related email protocols"
url="https://github.com/foxcpp/mailsec-check"
license="MIT"
arch="all"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/foxcpp/mailsec-check/archive/$_commit.tar.gz
mtasts_test.patch
update-go-mod.patch
"
builddir="$srcdir/$pkgname-$_commit"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build
}
check() {
go test ./...
}
package() {
install -Dm755 mailsec-check "$pkgdir"/usr/bin/mailsec-check
}
sha512sums="
3962b5575ac1dbfd5189b7d1cf7292e035082bbba8106a058d8bf3f4f6bd967ae9d55240e136390752faa87f3b5c52e1872d48db330c8792a3f3f858bf9ccba8 mailsec-check-0_git20210729.tar.gz
683caef0c617513581a669b54738d425debbbac0e18054dd6277966aaca5d78bdff1437f0582dce853472eb35bf7800fa572e2756e3802572f15e258f53fdcb6 mtasts_test.patch
c32c8acc0f2c2fca887988f67d2c07418a380927184b49e186545c6892d67d2e833fa999b80470c2ca9b0ced94903f39b3485fd02d92368f39a4b2d9d16ae1ce update-go-mod.patch
"