void-packages/srcpkgs/messagelib/template

64 lines
2.4 KiB
Bash

# Template file for 'messagelib'
pkgname=messagelib
version=23.08.4
revision=1
build_style=cmake
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python3
gettext kcoreaddons kconfig"
makedepends="akonadi-contacts-devel gpgmeqt-devel
kidentitymanagement-devel kmailtransport-devel kmbox-devel libgravatar-devel
libkdepim-devel qt5-location-devel qt5-webchannel-devel qt5-webengine-devel
qca-qt5-devel pimcommon-devel knewstuff-devel"
checkdepends="procps-ng gnupg dbus"
short_desc="KDE PIM messaging library"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://community.kde.org/KDE_PIM"
distfiles="${KDE_SITE}/release-service/${version}/src/messagelib-${version}.tar.xz"
checksum=9ad95d1a559fc09855ac6cdba9b4cda58ef0bb7c4b09764b67da440ebf5850d9
make_check_pre="dbus-run-session"
#TODO: fix build without qca-qt5
do_check() {
cd build
broken="mimetreeparser-basicobjecttreeparsertest"
broken+="|messageviewer-messageparttheme-unencryptedmessagetest"
broken+="|mimetreeparser-bodypartformatterbasefactorytest"
broken+="|messageviewer-scamwebenginedetection-scamdetectionwebenginetest"
broken+="|messageviewer-messageparttheme-objecttreeparsertest"
broken+="|messageviewer-messageparttheme-rendertest"
broken+="|messageviewer-messageparttheme-showonlymimeparttest"
broken+="|messageviewer-dkimchecksignaturejobtest"
broken+="|messageviewer-dkimutiltest"
broken+="|akonadi-sqlite-viewertest"
broken+="|akonadi-sqlite-viewergrantleethemesupporttest"
broken+="|akonadi-sqlite-urlhandlermanagertest"
broken+="|templateparser-templateextracttextfrommailtest"
broken+="|templateparser-templateextracthtmlelementfrommailtest"
broken+="|templateparser-templateparserjobtest"
broken+="|messagecomposer-messagefactoryngtest"
broken+="|messagecomposer-replystrategytest"
broken+="|messagecomposer-cryptocomposertest"
broken+="|messagecomposer-composerviewbasetest"
broken+="|messagecore-autocryptrecipienttest"
broken+="|webengineviewer-webengineexportpdfpagejobtest"
broken+="|messageviewer-webengine-webengineaccesskeyanchorfromhtmltest"
dbus-run-session ctest -E "($broken)"
}
if [ "$CROSS_BUILD" ]; then
LDFLAGS=" -Wl,-rpath-link,../../bin"
fi
messagelib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/qt5/mkspecs
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}