void-packages/srcpkgs/zint/template

49 lines
1.2 KiB
Bash

# Template file for 'zint'
pkgname=zint
version=2.12.0
revision=1
build_style=cmake
configure_args="-DZINT_USE_QT=OFF"
makedepends="libpng-devel zlib-devel"
short_desc="Barcode encoding library"
maintainer="Piraty <mail@piraty.dev>"
license="GPL-3.0-or-later"
homepage="https://www.zint.org.uk/"
changelog="https://raw.githubusercontent.com/zint/zint/master/ChangeLog"
distfiles="https://github.com/zint/zint/archive/refs/tags/${version}.tar.gz"
checksum=83c76873cda163537de4b937d390de42a8ae487e830e73212c4a74c8cc49ce65
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DZINT_TEST=ON"
else
configure_args+=" -DZINT_TEST=OFF"
fi
pre_check() {
export PATH="$PATH:$wrksrc/build/frontend"
export LD_LIBRARY_PATH="$wrksrc/build/backend"
}
post_install() {
vmkdir "usr/lib/cmake/zint"
mv "${DESTDIR}/usr/share/apps/cmake/modules/"Find*cmake "${DESTDIR}/usr/lib/cmake/zint"
mv "${DESTDIR}/usr/share/zint/zint-"*.cmake "${DESTDIR}/usr/lib/cmake/zint"
}
zint-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}
libzint_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}