void-packages/srcpkgs/messagelib/template

69 lines
2.6 KiB
Bash

# Template file for 'messagelib'
pkgname=messagelib
version=24.05.1
revision=1
build_style=cmake
configure_args="-DBUILD_TESTING=OFF -DKF6_HOST_TOOLING=/usr/lib/cmake
-DKDE_INSTALL_QTPLUGINDIR=lib/qt6/plugins
-DKDE_INSTALL_QMLDIR=lib/qt6/qml
-DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt6/mkspecs/modules"
hostmakedepends="extra-cmake-modules qt6-base qt6-tools python3
gettext kf6-kcoreaddons kf6-kconfig"
makedepends="akonadi-contacts-devel gpgme-qt6-devel
kidentitymanagement-devel kmailtransport-devel kmbox-devel libgravatar-devel
libkdepim-devel qt6-webchannel-devel qt6-webengine-devel
pimcommon-devel kf6-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=da2091616ddc3b8002031942b2e87a6bb4aabaa33b17d5298f5558f3c14f3646
make_check_pre="dbus-run-session"
if [ "$XBPS_WORDSIZE$XBPS_WORDSIZE" != "64$XBPS_TARGET_WORDSIZE" ]; then
broken="Qt6 WebEngine"
fi
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/cmake
vmove "usr/lib/*.so"
}
}