55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
# Template file for 'akonadi5'
|
|
pkgname=akonadi5
|
|
version=21.04.1
|
|
revision=1
|
|
wrksrc="akonadi-${version}"
|
|
build_style=cmake
|
|
build_helper="qemu"
|
|
hostmakedepends="extra-cmake-modules qt5-qmake qt5-host-tools python3
|
|
shared-mime-info libxslt pkg-config gettext"
|
|
makedepends="qt5-devel qt5-plugin-mysql qt5-plugin-odbc qt5-plugin-pgsql
|
|
qt5-plugin-sqlite qt5-plugin-tds kcompletion-devel kconfigwidgets-devel
|
|
kdbusaddons-devel kiconthemes-devel kitemmodels-devel kio-devel sqlite-devel
|
|
kaccounts-integration-devel libaccounts-qt5-devel qt5-tools-devel"
|
|
depends="shared-mime-info"
|
|
checkdepends="dbus ${depends}"
|
|
short_desc="PIM layer providing an asynchronous API to access PIM data"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://community.kde.org/KDE_PIM/Akonadi"
|
|
distfiles="${KDE_SITE}/release-service/${version}/src/akonadi-${version}.tar.xz"
|
|
checksum=23c8cfcfcc8188ac4c7e33d840e3d835dc714f6e021b070dbec332b18b93eb8f
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" qt5-tools-devel qt5-devel kconfig kcoreaddons"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
vsed -e "s;^\(target_link_libraries(.*\);\1 atomic;" -i src/server/CMakeLists.txt
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
# failing tests are disabled - sqlite tests hang on futex
|
|
cd build
|
|
QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE \
|
|
dbus-run-session ctest -E \
|
|
"(akonadixml-xmldocument|mimetypechecker|AkonadiControl-agenttype|.*sqlite.*)test"
|
|
}
|
|
|
|
akonadi5-devel_package() {
|
|
short_desc+=" - development"
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/qt5/mkspecs
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|