aboutsummaryrefslogblamecommitdiffstats
path: root/testing/messagelib/APKBUILD
blob: b25e78efd05d1fa277b58d26b81c673973de80e8 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              




                                                             
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                              
                                                                                              


                                                          





                               
         

                            






                                                   
                            



                                                   
                            

                                      
                                                                                                                                                                        
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=messagelib
pkgver=19.12.1
pkgrel=0
pkgdesc="KDE PIM messaging library"
arch="all !ppc64le !s390x" # 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=RelWithDebInfo \
		-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="7980f890108165d01d447ed40ab655ac090e9df33dd5f578575581b24ce3cfaa043be57baf2acb711cd8b9fc6fd8c927aaec809a002ddcfd03f9d332eb9ab8a1  messagelib-19.12.1.tar.xz"