description='A C++ library to decode QRCode'
url='https://github.com/nu-book/zxing-cpp'

license="Apache"

packager="tnut <tnut@nutyx.org>"
contributors="Spiky"

name=zxing-cpp
version=2.2.1

makedepends=(cmake)

source=(https://github.com/nu-book/zxing-cpp/archive/v$version/$name-$version.tar.gz)

build() {
  cmake -B build -S $name-$version \
   -DCMAKE_INSTALL_PREFIX=/usr \
   -DCMAKE_BUILD_TYPE=None \
   -DBUILD_EXAMPLES=OFF \
   -DBUILD_UNIT_TESTS=OFF
  cmake --build build

  DESTDIR=$PKG cmake --install build
}
