32 lines
958 B
Bash
32 lines
958 B
Bash
# Template file for 'zxing-cpp'
|
|
pkgname=zxing-cpp
|
|
version=2.1.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/"
|
|
changelog="https://github.com/zxing-cpp/zxing-cpp/releases"
|
|
distfiles="https://github.com/nu-book/zxing-cpp/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=6d54e403592ec7a143791c6526c1baafddf4c0897bb49b1af72b70a0f0c4a3fe
|
|
|
|
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"
|
|
}
|
|
}
|