aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/supercronic/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/supercronic/APKBUILD b/testing/supercronic/APKBUILD
new file mode 100644
index 0000000000..6c2e17f0d1
--- /dev/null
+++ b/testing/supercronic/APKBUILD
@@ -0,0 +1,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"