Subject: [PATCH] main/procps: fix wrong version in libprocps.pc

From: alpine-mips-patches <[email-masked]>
Date: Wed, 13 Nov 2019 20:14:14 +0000

---
 main/procps/APKBUILD | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/main/procps/APKBUILD b/main/procps/APKBUILD
index 616b7a1e02..0440389251 100644
--- a/main/procps/APKBUILD
+++ b/main/procps/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=procps
 pkgver=3.3.15
-pkgrel=0
+pkgrel=1
 pkgdesc="Utilities for monitoring your system and processes on your system"
 url="https://gitlab.com/procps-ng/procps"
 arch="all"
@@ -19,6 +19,12 @@ prepare() {
 	default_prepare
 
 	cd "$builddir"
+	# force misc/git-version-gen use the correct version (instead of UNKNOWN);
+	# however only do it if the upstream tarball really misses it.
+	if test ! -f .tarball_version ; then
+		rm -f .version
+		echo "$pkgver" > .tarball-version
+	fi
 	./autogen.sh
 }
 
-- 
2.23.0