[arch-commits] Commit in grafana/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Thu Feb 4 17:13:01 UTC 2021
Date: Thursday, February 4, 2021 @ 17:13:01
Author: jelle
Revision: 844711
upgpkg: grafana 7.4.0-1
Modified:
grafana/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-04 17:12:57 UTC (rev 844710)
+++ PKGBUILD 2021-02-04 17:13:01 UTC (rev 844711)
@@ -3,7 +3,7 @@
# Contributor: Gilles Hamel <hamelg at laposte dot net>
pkgname=grafana
-pkgver=7.3.7
+pkgver=7.4.0
pkgrel=1
pkgdesc='Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & OpenTSDB'
url='https://grafana.com/'
@@ -10,7 +10,7 @@
arch=('x86_64')
license=('Apache')
depends=('glibc' 'freetype2' 'fontconfig' 'gsfonts')
-makedepends=('git' 'go' 'npm' 'grunt-cli' 'python' 'nodejs-lts-erbium')
+makedepends=('git' 'go' 'npm' 'grunt-cli' 'python' 'nodejs' 'yarn')
backup=('etc/grafana.ini')
source=("git+https://github.com/grafana/grafana.git#tag=v$pkgver"
'grafana.service'
@@ -71,9 +71,8 @@
echo 'building the frontend'
export NPM_CONFIG_PREFIX="$srcdir/npm"
export PATH+=":$NPM_CONFIG_PREFIX/bin"
- npm install -g yarn
yarn install --pure-lockfile --no-progress
- npm run build release
+ NODE_ENV=production yarn run build
}
package() {
@@ -89,6 +88,9 @@
for i in public tools; do
cp -r "$i" "$pkgdir/usr/share/grafana/$i"
done
+
+ # Remove unit tests
+ rm -r "$pkgdir/usr/share/grafana/public/test"
}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list