Subject: [PATCH] community/prometheus: upgrade to 2.31.0

From: Drew DeVault <[email-masked]>
Date: Wed, 3 Nov 2021 10:22:43 +0100

---
 community/prometheus/APKBUILD | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/community/prometheus/APKBUILD b/community/prometheus/APKBUILD
index 5a941bac75..5e75c50c26 100644
--- a/community/prometheus/APKBUILD
+++ b/community/prometheus/APKBUILD
@@ -1,6 +1,6 @@
 # Maintainer: Drew DeVault <[email-masked]>
 pkgname=prometheus
-pkgver=2.30.3
+pkgver=2.31.0
 pkgrel=0
 pkgdesc="The Prometheus monitoring system and time series database"
 url="https://github.com/prometheus/prometheus"
@@ -21,14 +21,14 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/prometheus/prometheus/archiv
 #     - CVE-2021-29622
 
 build() {
-	cd web/ui/react-app
+	cd "$builddir"/web/ui/react-app
 	yarn --frozen-lockfile
 	yarn lint
-	cd ../../../
-	./scripts/build_react_app.sh
-	cd web/ui
+	cd "$builddir"/web/ui
+	npm run build
+	npm run build:module
 	go generate -x -v
-	cd ../../
+	cd "$builddir"
 	gofmt -w ./web/ui
 
 	GOLDFLAGS="-X github.com/prometheus/common/version.Version=$pkgver
@@ -88,7 +88,7 @@ package() {
 }
 
 sha512sums="
-9b6715350429d0991d51c5f5c6e5f19284e1a5ed2b0db93915f21770b0a52c858e0a3f87029338ce0f1403071a673e9514b7be8899a195ba1e467335ac77cb39  prometheus-2.30.3.tar.gz
+5d35d305bf229ec2f79e90ca4a961878f854c4308d68a42a00ffa0a02569f4efeef18abc46dcfb931c1cb91f725fe27ea79b10f2e5704585082ea2d8f4e42f10  prometheus-2.31.0.tar.gz
 eb0cebe41782f90079f367832f7c9efa18b99df410506b65b2e0b11fa05f8f2956f68c0fca836664729d50b85fc969a96e99e1d32012fe3c655cddc0b16a7561  prometheus.initd
 24b34e586238d5b331639aa5c43b6a927692f251af2cea2787335eab30d2fc7d46975059595db4697ae0dc1d35b5e23cfc4e4b2e424442c209a05283ca22a239  prometheus.confd
 "
-- 
2.33.1