makedepends=(cmake )

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

packager="Great-OS Team"
maintainer="Great-OS Team"

name=zxing-cpp
version=2.3.0
release=1

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

build() {
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DBUILD_TESTING=OFF \
    -DBUILD_EXAMPLES=OFF \
    -DBUILD_UNIT_TESTS=OFF \
    -Wno-dev \
    ../$name-$version
  make
  make DESTDIR=$PKG install
}
