aboutsummaryrefslogtreecommitdiffstats
path: root/community/supercronic/APKBUILD
blob: 7304654fbc8a60d1141a1d432971b37dc819def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=supercronic
pkgver=0.1.12
pkgrel=11
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"

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"