[arch-commits] Commit in zxing-cpp/repos/extra-x86_64 (PKGBUILD PKGBUILD)

Jan Steffens heftig at archlinux.org
Thu Sep 10 01:50:35 UTC 2020


    Date: Thursday, September 10, 2020 @ 01:50:35
  Author: heftig
Revision: 395675

archrelease: copy trunk to extra-x86_64

Added:
  zxing-cpp/repos/extra-x86_64/PKGBUILD
    (from rev 395674, zxing-cpp/trunk/PKGBUILD)
Deleted:
  zxing-cpp/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   70 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 37 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-10 01:50:21 UTC (rev 395674)
+++ PKGBUILD	2020-09-10 01:50:35 UTC (rev 395675)
@@ -1,33 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-# Maintainer: Maxime Arthaud <maxime at arthaud.me>
-
-pkgname=zxing-cpp
-pkgver=1.1.0
-pkgrel=2
-pkgdesc="A C++ library to decode QRCode"
-arch=(x86_64)
-url="https://github.com/nu-book/zxing-cpp"
-license=(Apache)
-depends=(gcc-libs)
-makedepends=(cmake)
-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 \
-    -DCMAKE_BUILD_TYPE=None \
-    -DBUILD_EXAMPLES=OFF
-  cmake --build build
-}
-
-package() {
-  DESTDIR="$pkgdir" cmake --install build
-}

Copied: zxing-cpp/repos/extra-x86_64/PKGBUILD (from rev 395674, zxing-cpp/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-10 01:50:35 UTC (rev 395675)
@@ -0,0 +1,37 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Maxime Arthaud <maxime at arthaud.me>
+
+pkgname=zxing-cpp
+pkgver=1.1.0
+pkgrel=3
+pkgdesc="A C++ library to decode QRCode"
+arch=(x86_64)
+url="https://github.com/nu-book/zxing-cpp"
+license=(Apache)
+depends=(gcc-libs)
+makedepends=(cmake)
+source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz")
+sha256sums=('283574a817a6efdb38e4f0480fb7697e9b1f90b55d6b16e92e1a2d2af9c43506')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix pkg-config file
+  # https://github.com/nu-book/zxing-cpp/commit/877b6db1613ddae58e570801920f089c0f64b97f
+  # https://github.com/nu-book/zxing-cpp/issues/156
+  sed -e 's/@VERSION@/@PROJECT_VERSION@/' \
+      -e 's/@TARGET_ZXING@/ZXing/' \
+      -i zxing.pc.in
+}
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=None \
+    -DBUILD_EXAMPLES=OFF
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+}


More information about the arch-commits mailing list