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

Antonio Rojas arojas at archlinux.org
Fri Jul 31 09:58:31 UTC 2020


    Date: Friday, July 31, 2020 @ 09:58:31
  Author: arojas
Revision: 392773

Update to 1.1.0

Modified:
  zxing-cpp/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-31 09:53:50 UTC (rev 392772)
+++ PKGBUILD	2020-07-31 09:58:31 UTC (rev 392773)
@@ -2,7 +2,7 @@
 # Maintainer: Maxime Arthaud <maxime at arthaud.me>
 
 pkgname=zxing-cpp
-pkgver=1.0.8
+pkgver=1.1.0
 pkgrel=1
 pkgdesc="A C++ library to decode QRCode"
 arch=(x86_64)
@@ -11,22 +11,16 @@
 depends=(gcc-libs)
 makedepends=(cmake)
 source=($pkgname-$pkgver.tar.gz::"https://github.com/nu-book/zxing-cpp/archive/v$pkgver.tar.gz")
-sha256sums=('9154b5456904e47bd4c38462d57e4b7897bfb20cb2bc2e8c958453e40e73c8b2')
+sha256sums=('283574a817a6efdb38e4f0480fb7697e9b1f90b55d6b16e92e1a2d2af9c43506')
 
-prepare() {
-  mkdir -p build
-}
-
 build() {
-  cd build
-  cmake ../$pkgname-$pkgver \
+  cmake -B build -S $pkgname-$pkgver \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_BUILD_TYPE=None \
-    -DBUILD_SHARED_LIBRARY=ON
-  make
+    -DBUILD_EXAMPLES=OFF
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }


More information about the arch-commits mailing list