Commit f693385d authored by Leo's avatar Leo

testing/mage: new aport

https://magefile.org/
make-like build tool using Go
parent 0dd44cc6
# Contributor: Mark Pashmfouroush <mark@markpash.me>
# Maintainer: Mark Pashmfouroush <mark@markpash.me>
pkgname=mage
pkgver=1.10.0
pkgrel=0
# Commit hash that corresponds to the version
_commit=9a10961401323a8a888d46e35d5a59d7433e092b
pkgdesc="make-like build tool using Go"
url="https://magefile.org/"
arch="all"
license="Apache-2.0"
depends="go"
options="chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/magefile/mage/archive/v$pkgver.tar.gz"
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="db0cf9e9c1a1df8d4e1de2746d8a91ba4acb62a43bcec8770474bfd27dcf237d7624c96fd42e314532a18ce36380279db231d8556deec26114f122180793a9f7 mage-1.10.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment