mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-03 23:11:36 +01:00
34 lines
979 B
Plaintext
34 lines
979 B
Plaintext
# Contributor: Thomas Kienlen <kommander@laposte.net>
|
|
# Maintainer: Thomas Kienlen <kommander@laposte.net>
|
|
pkgname=supercronic
|
|
pkgver=0.1.12
|
|
pkgrel=2
|
|
pkgdesc="Cron for containers"
|
|
url="https://github.com/aptible/supercronic"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
checkdepends="python3"
|
|
source="https://github.com/aptible/supercronic/archive/v$pkgver/supercronic-$pkgver.tar.gz
|
|
python3.patch
|
|
"
|
|
options="chmod-clean"
|
|
|
|
build() {
|
|
go build \
|
|
-trimpath \
|
|
-ldflags "-s -w"
|
|
}
|
|
|
|
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="d3b9238647e8f10a1f844e1c4311a493492c46b10f51384874d1a7e66f6e7bf30a94d8f5fd89344198d40026bb77494377ac0244b236a31ac350d8eb981e132c supercronic-0.1.12.tar.gz
|
|
fd88eccd0a18d65af57292e430a1c69b2de1d5c845522e1e1b8b217ab11b8d974543da747debbd6cd2c03d0929dcc04c028a0dc95fc27433331a0dec61d1dfae python3.patch"
|