Commit 571090f1 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Initial commit

parents
Pipeline #2083 failed with stages
in 2 minutes and 56 seconds
include:
- project: 'gitlab/gitlab-ci-package-template'
ref: master
file: '/packages.yml'
# Maintainer: Nigel Kukard <nkukard@LBSD.net>
# Contributor: Florian Pritz <bluewind@xinu.at>
pkgname=grafana-zabbix
pkgver=4.2.2
pkgrel=1.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=('7cc869c3cdab1cd577205e7b3b5c64fba0a9181241e5f11305091db59e695779')
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"
}
[package grafana-zabbix]
set=idms
repo=idms-community
path=.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment