[arch-commits] Commit in grafana-zabbix/repos/community-any (PKGBUILD PKGBUILD)
Florian Pritz
bluewind at gemini.archlinux.org
Sun May 1 13:10:58 UTC 2022
Date: Sunday, May 1, 2022 @ 13:10:58
Author: bluewind
Revision: 1192085
archrelease: copy trunk to community-any
Added:
grafana-zabbix/repos/community-any/PKGBUILD
(from rev 1192084, grafana-zabbix/trunk/PKGBUILD)
Deleted:
grafana-zabbix/repos/community-any/PKGBUILD
----------+
PKGBUILD | 75 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 39 insertions(+), 36 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-01 13:10:42 UTC (rev 1192084)
+++ PKGBUILD 2022-05-01 13:10:58 UTC (rev 1192085)
@@ -1,36 +0,0 @@
-# Maintainer: Florian Pritz <bluewind at xinu.at>
-pkgname=grafana-zabbix
-pkgver=4.2.6
-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 nodejs-lts-fermium) # 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=('03587d586be11e9e472e1001c949971c6b42053a000c9adc4e43fefac179be54')
-
-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"
-}
Copied: grafana-zabbix/repos/community-any/PKGBUILD (from rev 1192084, grafana-zabbix/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-05-01 13:10:58 UTC (rev 1192085)
@@ -0,0 +1,39 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+pkgname=grafana-zabbix
+pkgver=4.2.6
+pkgrel=2
+pkgdesc="Zabbix plugin for Grafana dashboard"
+arch=('any')
+url="https://github.com/alexanderzobnin/grafana-zabbix"
+license=('APACHE')
+depends=('grafana')
+makedepends=(yarn libfaketime go git nodejs-lts-gallium)
+source=("$pkgname-$pkgver-retagged-1.tar.gz::https://github.com/alexanderzobnin/grafana-zabbix/archive/v$pkgver.tar.gz"
+ grafana-zabbix-sass-update-for-node-16.patch::https://github.com/alexanderzobnin/grafana-zabbix/commit/a09d8a983e051cbe4a959c40224426edc3468d10.patch)
+sha256sums=('913efd1d6bfb903eb7e40d79d58fc1d9cf5041d4764bc1f34f1c5997439de1ab'
+ 'ec1c6863ba97db0da505569b0992bc6a3158d54621db20235635e4fbd36eb15c')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ patch -Np1 -i ../grafana-zabbix-sass-update-for-node-16.patch
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ make install
+ make build
+ make dist
+}
+
+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"
+}
More information about the arch-commits
mailing list