New package: datovka-4.26.0

This commit is contained in:
Emil Miler 2025-05-02 09:08:25 +02:00 committed by Duncan Overbruck
parent 581f4df797
commit c6521b39ef

28
srcpkgs/datovka/template Normal file
View file

@ -0,0 +1,28 @@
# Template file for 'datovka'
pkgname=datovka
version=4.26.0
revision=1
build_style=qmake
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
makedepends="libdatovka-devel qt5-websockets-devel qt5-svg-devel libxml2-devel
quazip-devel"
depends="hicolor-icon-theme qt5-plugin-sqlite qt5-translations"
short_desc="Electronic communication interface endorsed by the Czech government"
maintainer="Emil Miler <em@0x45.cz>"
license="GPL-3.0-or-later"
homepage="https://www.datovka.cz/"
distfiles="https://datovka.nic.cz/${version}/${pkgname}-${version}.tar.xz"
checksum=fa11e553d9432b7886324d8171147972ca853e6f8f871253a12ff1fec0ab3076
post_extract() {
# XXX: from https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/community/datovka/APKBUILD
# XXX: This enables '#define _Bool bool' which is needed on Alpine.
sed -i 's/#if defined(__APPLE__) || defined(__clang__)/& || !defined(__GLIBC__)/' \
config.tests/libdatovka/*.cpp \
src/*.cpp \
src/*.h \
src/isds/*.cpp \
src/isds/*.h \
src/datovka_shared/isds/*.h \
tests/*.cpp
}