2025-04-22 14:10:20 +02:00

53 lines
1.2 KiB
Bash

# Template file for 'zint'
pkgname=zint
version=2.15.0
revision=1
build_style=cmake
configure_args="-DZINT_USE_QT=ON -DZINT_USE_PNG=ON -DZINT_QT6=ON"
hostmakedepends="qt6-base"
makedepends="libpng-devel zlib-devel qt6-base-devel qt6-tools-devel qt6-svg-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=529ce50566f8421f1707333c201097c490273f93b5de45f4d21231a11d3722cf
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"
}
zint-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/cmake
}
}
libzint_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
zint-qt_package() {
short_desc+=" - Qt frontend"
depends="qt6-svg"
pkg_install() {
vmove usr/bin/zint-qt
}
}