aboutsummaryrefslogtreecommitdiffstats
path: root/testing/messagelib/APKBUILD
blob: 65a38af72e1aaf9fcf047c2cdf5e265d41a8376a (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=messagelib
pkgver=19.12.2
pkgrel=1
pkgdesc="KDE PIM messaging library"
arch="all !ppc64le !s390x !armhf" # Limited by qt5-qtwebengine
url="https://kontact.kde.org/"
license="LGPL-2.0-only OR LGPL-3.0-only AND GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev qt5-qtwebengine-dev kcodecs-dev ki18n-dev kmime-dev knewstuff-dev gpgme-dev karchive-dev kcompletion-dev kconfig-dev kconfigwidgets-dev kiconthemes-dev kitemviews-dev kjobwidgets-dev kio-dev kservice-dev sonnet-dev ktextwidgets-dev kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev syntax-highlighting-dev kdbusaddons-dev grantlee-dev akonadi-dev akonadi-mime-dev kcontacts-dev akonadi-contacts-dev grantleetheme-dev libgravatar-dev kidentitymanagement-dev kldap-dev libkdepim-dev libkleo-dev kmailtransport-dev kmbox-dev pimcommon-dev kpimtextedit-dev akonadi-search-dev kdepim-apps-libs-dev qca-dev"
checkdepends="xvfb-run"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/stable/release-service/$pkgver/src/messagelib-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # Requires OpenGL and running dbus server

prepare() {
	default_prepare
	
	mkdir "$builddir"/build
}

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

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}
sha512sums="e7c0ded5ec9869344a5e81ca8930d28ed304f89341d122f402aa01ed9691667916a95e5c4ab5c55689804b911caf397bf7add4c3a44478c1911d55c47d240f0c  messagelib-19.12.2.tar.xz"