Date: Monday, May 24, 2021 @ 12:13:56
  Author: bluewind
Revision: 944710

archrelease: copy trunk to community-testing-any

Added:
  grafana-zabbix/repos/community-testing-any/
  grafana-zabbix/repos/community-testing-any/PKGBUILD
    (from rev 944709, grafana-zabbix/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: grafana-zabbix/repos/community-testing-any/PKGBUILD (from rev 944709, 
grafana-zabbix/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2021-05-24 12:13:56 UTC (rev 944710)
@@ -0,0 +1,36 @@
+# Maintainer: Florian Pritz <[email protected]>
+pkgname=grafana-zabbix
+pkgver=4.1.5
+pkgrel=1
+pkgdesc="Zabbix plugin for Grafana dashboard"
+arch=('any')
+url="https://github.com/alexanderzobnin/grafana-zabbix";
+license=('APACHE')
+depends=('grafana')
+makedepends=(yarn python2 libfaketime go git) # node-sass depends on node-gyp 
3.8.0 which is still python2 https://github.com/sass/node-sass/issues/2877
+source=("$pkgname-$pkgver.tar.gz::https://github.com/alexanderzobnin/grafana-zabbix/archive/v$pkgver.tar.gz";)
+sha256sums=('ecba9ce3a84375934f94a2107b12d0abd1d0d818c46990ae2bc66b0fda47bbe7')
+
+build() {
+       cd "$pkgname-$pkgver"
+       export CXXFLAGS+=' -std=c++14 '
+       make install
+       make build
+       make dist
+       # Rerun this part since otherwise the linux_amd64 file ist missing from 
the
+       # dist dir
+       make dist-backend
+}
+
+check() {
+       cd "$pkgname-$pkgver"
+       # Force UTC timezone so that tests pass, even after a DST change
+       PATH="$PATH:/build/go/bin" TZ=UTC make test lint
+}
+
+package() {
+       cd "$pkgname-$pkgver"
+       install -dm755 
"$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
+       cp -r dist/* 
"$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
+       rm -rf 
"$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app/node_modules"
+}

Reply via email to