aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kmail/APKBUILD
blob: 84c7a48e975ff323367cf8c03a77c12b553593ed (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kmail
pkgver=19.12.2
pkgrel=0
arch="all !ppc64le !s390x !armhf" # Limited by qt5-qtwebengine
url="https://kontact.kde.org/components/kmail.html"
pkgdesc="Email client, supporting POP3 and IMAP mailboxes"
license="GPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtwebengine-dev akonadi-search-dev gpgme-dev kbookmarks-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcrash-dev kdbusaddons-dev kdoctools-dev kguiaddons-dev ki18n-dev kitemviews-dev kjobwidgets-dev kio-dev kcmutils-dev knotifications-dev knotifyconfig-dev kparts-dev kservice-dev sonnet-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev kiconthemes-dev akonadi-dev akonadi-contacts-dev akonadi-mime-dev kcontacts-dev kcalendarcore-dev kcalutils-dev kidentitymanagement-dev kldap-dev kmailtransport kpimtextedit-dev kontactinterface-dev kmime-dev libgravatar-dev kdepim-apps-libs-dev libkdepim-dev libkleo-dev libksieve-dev mailcommon-dev messagelib-dev pimcommon-dev kdepim-apps-libs-dev ktnef-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmail-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

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

check() {
	cd "$builddir"/build

	# akonadi-sqlite-tagselectdialogtest, akonadi-sqlite-kmcommandstest,
	# akonadi-sqlite-unifiedmailboxmanagertest and akonadi-mysql-unifiedmailboxmanagertestrequire
	# running dbus server
	local skipped_tests="("
	local tests="
		akonadi-sqlite-tagselectdialogtest
		akonadi-sqlite-kmcommandstest
		akonadi-sqlite-unifiedmailboxmanagertest
		akonadi-mysql-unifiedmailboxmanagertest"
	for test in $tests; do
		skipped_tests="$skipped_tests|$test"
	done
	skipped_tests="$skipped_tests)"
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests"
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}

sha512sums="84a9dbea7b84d46366d41efdd5640a740fc8ca0c7d62b35f9bd9406e474a3fc685d16d664e3eea4e5b3a1e1896b7ac6bc5d99f1e524f463b71e434ec72a82611  kmail-19.12.2.tar.xz"