🔒 Repository is read-only – file editing is disabled.

recipes/gui/zxing-cpp/PAGBUILD.yaml main

38 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738
pkgname: zxing-cpp
pkgver: '3.1.1'
pkgrel: 1
pkgdesc: A C++ library to decode QRCode
url: 'https://github.com/nu-book/zxing-cpp'
arch: x86_64
license:
- Apache
depends: []
makedepends:
- cmake
- opencv
- stb
- zint
- qt6-multimedia
source:
- 'https://github.com/nu-book/zxing-cpp/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz'
- system-stb.patch
sha256sums:
- SKIP
- SKIP
build: |
  cd ${pkgname}-${pkgver}
  patch -Np1 -i ../system-stb.patch
  cmake -B build -S . \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -D CMAKE_INSTALL_LIBDIR=lib \
   -DCMAKE_BUILD_TYPE=None \
   -DZXING_USE_BUNDLED_ZINT=OFF \
   -DZXING_EXAMPLES=ON    \
   -DZXING_EXAMPLES_QT=ON \
   -DZXING_C_API=ON       \
   -DZXING_WRITERS=BOTH
  cmake --build build

  DESTDIR=${PKGDIR} cmake --install build
package: |
  true