[arch-commits] Commit in grafana-zabbix/repos/community-any (PKGBUILD PKGBUILD)

Florian Pritz bluewind at archlinux.org
Sun Nov 15 13:32:09 UTC 2020


    Date: Sunday, November 15, 2020 @ 13:32:08
  Author: bluewind
Revision: 754458

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   63 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 32 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-15 13:32:06 UTC (rev 754457)
+++ PKGBUILD	2020-11-15 13:32:08 UTC (rev 754458)
@@ -1,31 +0,0 @@
-# Maintainer: Florian Pritz <bluewind at xinu.at>
-pkgname=grafana-zabbix
-pkgver=4.0.1
-pkgrel=1
-pkgdesc="Zabbix plugin for Grafana dashboard"
-arch=('any')
-url="https://github.com/alexanderzobnin/grafana-zabbix"
-license=('APACHE')
-depends=('grafana')
-makedepends=(yarn python2) # 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=('8967e8fea38c85f3753a9108641088c5b176eedd2a3f06f9cf15b19fd6ab87f4')
-
-build() {
-	cd "$pkgname-$pkgver"
-	yarn install --pure-lockfile
-	yarn upgrade node-sass
-	yarn build
-}
-
-check() {
-	cd "$pkgname-$pkgver"
-	yarn test
-}
-
-package() {
-	cd "$pkgname-$pkgver"
-	install -dm755 "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
-	cp -r . "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
-	rm -rf "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app/node_modules"
-}

Copied: grafana-zabbix/repos/community-any/PKGBUILD (from rev 754457, grafana-zabbix/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-15 13:32:08 UTC (rev 754458)
@@ -0,0 +1,32 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+pkgname=grafana-zabbix
+pkgver=4.0.2
+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) # 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=('96617a10f784cdb10cc02fe639bf2806f36ab3160ad4b58261f56c368a882412')
+
+build() {
+	cd "$pkgname-$pkgver"
+	yarn install --pure-lockfile
+	yarn upgrade node-sass
+	yarn build
+}
+
+check() {
+	cd "$pkgname-$pkgver"
+	# Force UTC timezone so that tests pass, even after a DST change
+	TZ=UTC yarn test
+}
+
+package() {
+	cd "$pkgname-$pkgver"
+	install -dm755 "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
+	cp -r . "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app"
+	rm -rf "$pkgdir/var/lib/grafana/plugins/alexanderzobnin-zabbix-app/node_modules"
+}



More information about the arch-commits mailing list