2023-10-12 06:27:02 +02:00

39 lines
1.2 KiB
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=mailsec-check
pkgver=0_git20210729
_commit=a4aa6329a96ae6403791a51ddb8ac880af5b4eb3
pkgrel=16
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
"
builddir="$srcdir/$pkgname-$_commit"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export CGO_ENABLED=0
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
"