aboutsummaryrefslogtreecommitdiffstats
path: root/testing/supercronic/APKBUILD
blob: a56b118c3763b03c47f54c5d839540380e409701 (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
34
35
36
37
38
39
# Contributor: Thomas Kienlen <t.kienlen@adhoc-gti.com>
# Maintainer: Thomas Kienlen <t.kienlen@adhoc-gti.com>
pkgname=supercronic
pkgver=0.1.9
pkgrel=1
pkgdesc="Cron for containers"
url="https://github.com/aptible/supercronic"
arch="all !mips !mips64" # blocked by dep
license="MIT"
makedepends="go bash dep"
checkdepends="python3"
source="$pkgname-$pkgver.tar.gz::https://github.com/aptible/supercronic/archive/v$pkgver.tar.gz
	python3.patch
	"
builddir="$srcdir/src/github.com/aptible/$pkgname"

export GOPATH="$srcdir"

prepare() {
	mkdir -p "${builddir%/*}"
	mv "$srcdir"/$pkgname-$pkgver "$builddir"
	default_prepare
}

build() {
	dep ensure -vendor-only
	go build
}

check() {
	make unit
}

package() {
	install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="0e2a283c699b6f7ad1925d4d883290e42eb955b54e35ade71106c0e66886ac8f2c919f62acd5ff3064e4f71523e7415ae573b533a06ee762f27c87af29107ed3  supercronic-0.1.9.tar.gz
fd88eccd0a18d65af57292e430a1c69b2de1d5c845522e1e1b8b217ab11b8d974543da747debbd6cd2c03d0929dcc04c028a0dc95fc27433331a0dec61d1dfae  python3.patch"