void-packages/srcpkgs/zxing-cpp/template

31 lines
898 B
Bash

# Template file for 'zxing-cpp'
pkgname=zxing-cpp
version=2.0.0
revision=1
build_style=cmake
configure_args="-DBUILD_EXAMPLES=OFF -DBUILD_BLACKBOX_TESTS=OFF -DBUILD_DEPENDENCIES=LOCAL"
checkdepends="gtest-devel"
short_desc="Multi-format 1D/2D barcode image processing library"
maintainer="John <me@johnnynator.dev>"
license="Apache-2.0"
homepage="https://github.com/nu-book/zxing-cpp/"
distfiles="https://github.com/nu-book/zxing-cpp/archive/refs/tags/v${version}.tar.gz"
checksum=12b76b7005c30d34265fc20356d340da179b0b4d43d2c1b35bcca86776069f76
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_UNIT_TESTS=ON"
else
configure_args+=" -DBUILD_UNIT_TESTS=OFF"
fi
zxing-cpp-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}