mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
# Contributor: Konstantin Kulikov <k.kulikov2@gmail.com>
|
|
# Maintainer: Konstantin Kulikov <k.kulikov2@gmail.com>
|
|
|
|
# Make sure to keep this package in sync with grafana.
|
|
|
|
# Frontend files split from main grafana package.
|
|
# This is because grafana's build process is
|
|
# > build backend -> test backend -> build frontend -> test frontend
|
|
# while alpine doesn't allow easily interleaving those.
|
|
# Second problem is grafana doesn't support building on anything except linux/amd64,
|
|
# while alpine requires every build to be done natively.
|
|
# This is also a reason why we use prebuilt frontend archive.
|
|
|
|
pkgname=grafana-frontend
|
|
pkgver=9.5.1
|
|
pkgrel=0
|
|
pkgdesc="Open source, feature rich metrics dashboard and graph editor (frontend files)"
|
|
url="https://grafana.com"
|
|
arch="noarch"
|
|
license="AGPL-3.0-only"
|
|
options="!check" # We don't build frontend from sources.
|
|
source="$pkgname-$pkgver-bin.tar.gz::https://dl.grafana.com/oss/release/grafana-$pkgver.linux-amd64.tar.gz"
|
|
builddir="$srcdir/grafana-$pkgver"
|
|
|
|
package() {
|
|
install -dm755 "$pkgdir/usr/share/grafana"
|
|
cp -r "$builddir/plugins-bundled" "$builddir/public" "$pkgdir/usr/share/grafana/"
|
|
}
|
|
|
|
sha512sums="
|
|
8409654ea5f2632f32005e52e83b3aa36c7b0a8cdc1e49be79491c21ae6babdf26071f446e65223b2788672a87d9bf701ad80fce8d7bb6689cfcc381945518ec grafana-frontend-9.5.1-bin.tar.gz
|
|
"
|