aports/community/supercronic/APKBUILD
2025-05-11 17:42:12 +02:00

34 lines
951 B
Text

# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=supercronic
pkgver=0.2.33
pkgrel=5
pkgdesc="Cron for containers"
url="https://github.com/aptible/supercronic"
arch="all"
license="MIT"
makedepends="go"
checkdepends="python3"
source="supercronic-$pkgver.tar.gz::https://github.com/aptible/supercronic/archive/refs/tags/v$pkgver.tar.gz"
options="chmod-clean"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build -trimpath
}
check() {
# make unit (without -race option, -buildmode=pie not supported when -race is enabled)
go test -v ./...
}
package() {
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="
1a6fd92c5540257dcb976cc8e30d50a74a2cf3cffcee2efc7170c6b77089a943453e4069253e2f8ceabfe81ff0a120b29e7427b44263be13339a5a8dc62447dd supercronic-0.2.33.tar.gz
"