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

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


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

archrelease: copy trunk to staging-x86_64

Added:
  zxing-cpp/repos/staging-x86_64/
  zxing-cpp/repos/staging-x86_64/PKGBUILD
    (from rev 392773, zxing-cpp/trunk/PKGBUILD)

----------+
 PKGBUILD |   26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

Copied: zxing-cpp/repos/staging-x86_64/PKGBUILD (from rev 392773, zxing-cpp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-07-31 09:58:42 UTC (rev 392774)
@@ -0,0 +1,26 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Maxime Arthaud <maxime at arthaud.me>
+
+pkgname=zxing-cpp
+pkgver=1.1.0
+pkgrel=1
+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')
+
+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