59 lines
1.5 KiB
Bash
59 lines
1.5 KiB
Bash
# Template file for 'zint'
|
|
pkgname=zint
|
|
version=2.13.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=480d95e46d2a2dae204c0f2b6433f185aba50786a0f00d1420752a6e287311ec
|
|
|
|
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/*.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
|
|
}
|
|
}
|