aboutsummaryrefslogtreecommitdiffstats
path: root/testing/supercronic/APKBUILD
blob: 6c2e17f0d110eae6e25fd97545ced6b47d2cee42 (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
# Contributor: Thomas Kienlen <t.kienlen@adhoc-gti.com>
# Maintainer: Thomas Kienlen <t.kienlen@adhoc-gti.com>
pkgname="supercronic"
pkgver="0.1.9"
pkgrel=0
pkgdesc="Cron for containers"
url="https://github.com/aptible/supercronic"
arch="all"
license="MIT"
makedepends="go bash dep python"
source="$pkgname-$pkgver.tar.gz::https://github.com/aptible/supercronic/archive/v$pkgver.tar.gz"
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"