Date: Saturday, January 23, 2021 @ 15:46:57 Author: bluewind Revision: 826759
archrelease: copy trunk to community-any Added: grafana-zabbix/repos/community-any/PKGBUILD (from rev 826758, grafana-zabbix/trunk/PKGBUILD) Deleted: grafana-zabbix/repos/community-any/PKGBUILD ----------+ PKGBUILD | 64 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-01-23 15:46:55 UTC (rev 826758) +++ PKGBUILD 2021-01-23 15:46:57 UTC (rev 826759) @@ -1,32 +0,0 @@ -# Maintainer: Florian Pritz <bluew...@xinu.at> -pkgname=grafana-zabbix -pkgver=4.1.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 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=('d44882a4f7b13e9fe4e6934e2fc448be1e8527562fc00af70e0aa673189e0f88') - -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" -} Copied: grafana-zabbix/repos/community-any/PKGBUILD (from rev 826758, grafana-zabbix/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-01-23 15:46:57 UTC (rev 826759) @@ -0,0 +1,32 @@ +# Maintainer: Florian Pritz <bluew...@xinu.at> +pkgname=grafana-zabbix +pkgver=4.1.1 +pkgrel=2 +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=('d44882a4f7b13e9fe4e6934e2fc448be1e8527562fc00af70e0aa673189e0f88') + +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" +}