# Contributor: Thomas Kienlen # Maintainer: Thomas Kienlen pkgname=supercronic pkgver=0.2.25 pkgrel=2 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 python3.patch " 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=" 8d5a2fcd30438dcb3ff54677f88dd7f3bb8c7874ff6973c2bfed5b079d11443033be353487e199f94fd1f12ea674293c2ffd81322f8afc2160024b93dea0cfbd supercronic-0.2.25.tar.gz fd88eccd0a18d65af57292e430a1c69b2de1d5c845522e1e1b8b217ab11b8d974543da747debbd6cd2c03d0929dcc04c028a0dc95fc27433331a0dec61d1dfae python3.patch "