aboutsummaryrefslogtreecommitdiffstats
path: root/testing/grafana-image-renderer/APKBUILD
diff options
context:
space:
mode:
authorKonstantin Kulikov <k.kulikov2@gmail.com>2019-10-03 02:07:45 +0300
committerRasmus Thomsen <oss@cogitri.dev>2019-10-06 14:46:39 +0200
commit23f7f9e00081512b740df0074318a51ab6c49c77 (patch)
tree2565221dd4fceb71bbb4b9b9fa4e0409130a87b6 /testing/grafana-image-renderer/APKBUILD
parentaee8405c7da1a99988768ce4e15a57bfd5741d64 (diff)
downloadaports-23f7f9e00081512b740df0074318a51ab6c49c77.tar.bz2
aports-23f7f9e00081512b740df0074318a51ab6c49c77.tar.xz
testing/grafana-image-renderer: new aport
Diffstat (limited to 'testing/grafana-image-renderer/APKBUILD')
-rw-r--r--testing/grafana-image-renderer/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/grafana-image-renderer/APKBUILD b/testing/grafana-image-renderer/APKBUILD
new file mode 100644
index 0000000000..16e7ed1440
--- /dev/null
+++ b/testing/grafana-image-renderer/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Konstantin Kulikov <k.kulikov2@gmail.com>
+# Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com>
+pkgname=grafana-image-renderer
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="Grafana Backend Plugin that handles rendering of panels & dashboards to PNGs using headless chrome"
+url="https://github.com/grafana/grafana-image-renderer"
+arch="x86_64" # Same as grafana.
+license="Apache-2.0"
+makedepends="yarn"
+depends="nodejs ttf-opensans chromium ca-certificates"
+options="!check" # Has no test suite.
+install="$pkgname.pre-install"
+subpackages="$pkgname-openrc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/grafana/grafana-image-renderer/archive/v$pkgver.tar.gz
+ $pkgname.initd $pkgname.confd 10-host-param.patch"
+
+build() {
+ export CHROME_BIN="/usr/bin/chromium-browser"
+ export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
+
+ # Don't pollute our aports repo with husky git hooks.
+ # This command also acts as implicit "yarn install".
+ yarn remove --pure-lockfile -W husky
+
+ yarn build
+}
+
+package() {
+ install -Dm755 "$srcdir/$pkgname.initd" "$pkgdir/etc/init.d/$pkgname"
+ install -Dm644 "$srcdir/$pkgname.confd" "$pkgdir/etc/conf.d/$pkgname"
+ install -dm755 "$pkgdir/usr/share/$pkgname"
+ cp -r "$builddir/node_modules" "$builddir/build" "$builddir/proto" "$pkgdir/usr/share/$pkgname/"
+}
+
+sha512sums="44460e19b4225c27166d0f88a7bd73b12d85a38ff6057b82c66b0874d33ad436f6ea0245f138583efb72d3aa9073362907f873d3df06650cf6e21a4e07daaad8 grafana-image-renderer-1.0.5.tar.gz
+2b2b7952153419d8593b058cb9994f88e4191fcc58893c33d15592b0cac02d2859c9ebbdeb34e6365bd0633eee19393a274535679d32ffa220e375114f4915fc grafana-image-renderer.initd
+ee4fd884d39eb556ffebeb3bc8fc66295d660e94f0a1d58dea57745da967f62216096e481e417cecaf8a51c4181dff4f4586b70cfc2ee7dbad622a6b28735ad0 grafana-image-renderer.confd
+824b41f1a86ea97fdf4c9c34e8171a948ec07c03fa030f37614464f8d4b96984d3d49bf5579584216a5a86b7fa321e281b35d67ffdbfc4c83ee943af35d96dc1 10-host-param.patch"