void-packages/srcpkgs/zxing-cpp/template

33 lines
963 B
Bash

# Template file for 'zxing-cpp'
pkgname=zxing-cpp
version=2.2.1
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/zxing-cpp/zxing-cpp/"
changelog="https://github.com/zxing-cpp/zxing-cpp/releases"
distfiles="https://github.com/zxing-cpp/zxing-cpp/archive/refs/tags/v${version}.tar.gz"
checksum=02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635
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"
}
}