New package: zint-2.12.0

This commit is contained in:
Piraty 2023-09-16 01:28:48 +02:00
parent 9f9614a541
commit 04e3788d8e
No known key found for this signature in database
GPG Key ID: 82F2CC796BD07077
4 changed files with 51 additions and 0 deletions

View File

@ -4245,6 +4245,7 @@ libabsl_stacktrace.so.2308.0.0 abseil-cpp-20230802.0_1
libabsl_random_seed_gen_exception.so.2308.0.0 abseil-cpp-20230802.0_1
libabsl_log_internal_check_op.so.2308.0.0 abseil-cpp-20230802.0_1
libabsl_random_internal_randen_slow.so.2308.0.0 abseil-cpp-20230802.0_1
libzint.so.2.12 libzint-2.12.0_1
libairspyhf.so.0 libairspyhf-1.6.8_1
libtraceevent.so.1 libtraceevent-1.6.2_1
libtracefs.so.1 libtracefs-1.4.2_1

1
srcpkgs/libzint Symbolic link
View File

@ -0,0 +1 @@
zint

1
srcpkgs/zint-devel Symbolic link
View File

@ -0,0 +1 @@
zint

48
srcpkgs/zint/template Normal file
View File

@ -0,0 +1,48 @@
# 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+=" -ZINT_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.*"
}
}