aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mailcommon/APKBUILD
blob: e22c162cad3d821bd7a3af80bacfcf6c3b718605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mailcommon
pkgver=19.08.0
pkgrel=0
pkgdesc="KDE PIM library providing support for mail applications"
arch="all !ppc64le !s390x" # Limited by messagelib -> qt5-qtwebengine
url="https://kontact.kde.org/"
license="GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev karchive-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev ki18n-dev kiconthemes-dev kitemmodels-dev kitemviews-dev kio-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev kdbusaddons-dev syntax-highlighting-dev akonadi-dev akonadi-mime-dev libkdepim-dev mailimporter-dev kmailtransport-dev messagelib-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # Requires running dbus server

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" make install
}
sha512sums="f76745d6636e3791d1f3e29de773d1d96337ba0aa4aa603bafb4ab08dcb07abe59f40bf41fdd2b9a097b666ee0e3b45d507f7096728581a555c5f37e3dc82e6e  mailcommon-19.08.0.tar.xz"