[arch-commits] Commit in zxing-cpp/trunk (PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Sep 10 00:27:25 UTC 2020


    Date: Thursday, September 10, 2020 @ 00:27:24
  Author: heftig
Revision: 395671

1.1.0-2: Fix version in pkg-config file (used by GStreamer)

Modified:
  zxing-cpp/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-10 00:27:16 UTC (rev 395670)
+++ PKGBUILD	2020-09-10 00:27:24 UTC (rev 395671)
@@ -3,7 +3,7 @@
 
 pkgname=zxing-cpp
 pkgver=1.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A C++ library to decode QRCode"
 arch=(x86_64)
 url="https://github.com/nu-book/zxing-cpp"
@@ -13,6 +13,13 @@
 source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz")
 sha256sums=('283574a817a6efdb38e4f0480fb7697e9b1f90b55d6b16e92e1a2d2af9c43506')
 
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix version in pkg-config file
+  sed -i 's/@VERSION@/@PROJECT_VERSION@/g' zxing.pc.in
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \


More information about the arch-commits mailing list