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

From: alpine-mips-patches <[email-masked]>
Date: Fri, 15 Nov 2019 05:01:41 +0000

---
 main/libmspack/APKBUILD | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/main/libmspack/APKBUILD b/main/libmspack/APKBUILD
index 83f62b4eab..521ce6726d 100644
--- a/main/libmspack/APKBUILD
+++ b/main/libmspack/APKBUILD
@@ -2,7 +2,7 @@
 pkgname=libmspack
 pkgver=0.8_alpha
 _ver=${pkgver/_/}
-pkgrel=0
+pkgrel=1
 pkgdesc="Library for Microsoft CAB compression formats"
 url="https://www.cabextract.org.uk/libmspack/"
 arch="all"
@@ -27,6 +27,11 @@ builddir="$srcdir"/libmspack-$_ver
 #     - CVE-2017-6419
 #     - CVE-2017-11423
 
+prepare() {
+	default_prepare
+	sed -i "s/@VERSION@/$pkgver/" libmspack.pc.in
+}
+
 build() {
 	cd "$builddir"
 	./configure \
-- 
2.24.0