Date: Sunday, December 15, 2019 @ 15:49:04 Author: demize Revision: 371511
Build assets for web UI Modified: prometheus/trunk/PKGBUILD ----------+ PKGBUILD | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-12-15 15:17:09 UTC (rev 371510) +++ PKGBUILD 2019-12-15 15:49:04 UTC (rev 371511) @@ -10,7 +10,7 @@ license=('Apache') depends=('glibc') -makedepends=('go-pie' 'git' 'bzr') +makedepends=('go-pie' 'git' 'bzr' 'yarn') backup=('etc/prometheus/prometheus.yml') @@ -32,6 +32,7 @@ -X github.com/prometheus/common/version.BuildUser=someone@builder \ -X github.com/prometheus/common/version.BuildDate=$(date -d@"$SOURCE_DATE_EPOCH" +%Y%m%d-%H:%M:%S)" + make assets go build \ -gcflags "all=-trimpath=$PWD" \ -asmflags "all=-trimpath=$PWD" \ @@ -61,8 +62,8 @@ install -dm755 -o210 -g210 "$pkgdir"/var/lib/prometheus # Web - install -dm755 "$pkgdir"/usr/share/prometheus/ - cp -R web/ui "$pkgdir"/usr/share/prometheus/web + install -dm755 "$pkgdir"/usr/share/prometheus/web/ui + cp -R web/ui/{static,templates} "$pkgdir"/usr/share/prometheus/web/ui/ # Examples install -Dm644 -t "$pkgdir"/usr/share/doc/prometheus/examples documentation/examples/prometheus*.yml