pkgname=zxing-cpp pkgver=2.2.1 pkgrel=1 arch=('x86_64') url='https://github.com/nu-book/zxing-cpp' pkgdesc="Zebra Crossing barcode scanning library for Java, Android, ported to C++" license=('Apache') depends=('gcc-libs') makedepends=('cmake') source=("https://github.com/nu-book/zxing-cpp/archive/v${pkgver}.tar.gz") md5sums=('8d2b1592668c57f77c6351c8bb5fe739') build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }