aports/testing/mage/APKBUILD
Michał Polański 95690efbac testing/*: rebuild with go 1.16.5
Go binaries are statically linked, security updates require rebuilds
2021-06-06 01:20:23 +02:00

38 lines
1.2 KiB
Plaintext

# Contributor: Mark Pashmfouroush <mark@markpash.me>
# Maintainer: Mark Pashmfouroush <mark@markpash.me>
pkgname=mage
pkgver=1.11.0
pkgrel=1
# Commit hash that corresponds to the version
_commit=07afc7d24f4d6d6442305d49552f04fbda5ccb3e
pkgdesc="make-like build tool using Go"
url="https://magefile.org/"
license="Apache-2.0"
arch="all"
depends="go"
options="chmod-clean"
source="https://github.com/magefile/mage/archive/v$pkgver/mage-$pkgver.tar.gz
fix-tests-for-go-1.16.patch
"
export GOPATH="$srcdir"
build() {
go build -o bin/mage -ldflags="
-X \"github.com/magefile/mage/mage.timestamp=$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})\"
-X \"github.com/magefile/mage/mage.commitHash=$_commit\"
-X \"github.com/magefile/mage/mage.gitTag=$pkgver\"
"
}
check() {
go test ./...
}
package() {
install -Dm0755 bin/mage "$pkgdir/usr/bin/mage"
}
sha512sums="dd4e0764f6567250a70461f7b040cc5725f59a4b375aa85f1b4f0a8a9c1738ec4fc5f1a078349f34e655229397b0431c88ecd54603c281440a23a81e949cf9a4 mage-1.11.0.tar.gz
1bbc800a87ff05c7504bd81a6a4ebada4065e425b76b68120b3471271a8dd096b0988f823ca46f5031d409fa834be29ea8497dba4bcae5f997b32410fb0dcea7 fix-tests-for-go-1.16.patch"