summaryrefslogblamecommitdiff
path: root/user/kdepim-apps-libs/APKBUILD
blob: 354992d246d9b9195a0b03518473eeb916a33e5c (plain) (tree)
1
2
3
4


                                                  
              













                                                                               


                                                                                                   
























                                                                                          

                                                                                                                                                                             
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kdepim-apps-libs
pkgver=20.08.1
pkgrel=0
pkgdesc="Runtime libraries for KDE PIM applications"
url="https://kontact.kde.org/"
arch="all"
license="LGPL-2.1+ AND GPL-2.0+"
depends=""
makedepends="qt5-qtbase-dev cmake extra-cmake-modules akonadi-dev
	akonadi-contacts-dev boost-dev gpgme-dev grantlee-dev grantleetheme-dev
	kauth-dev kcodecs-dev kcompletion-dev kconfig-dev kconfigwidgets-dev
	kcontacts-dev kcoreaddons-dev ki18n-dev kimap-dev kitemmodels-dev
	kitemviews-dev kjobwidgets-dev kio-dev kmime-dev kservice-dev
	kwidgetsaddons-dev kwindowsystem-dev kxmlgui-dev libkleo-dev
	pimcommon-dev prison-dev solid-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdepim-apps-libs-$pkgver.tar.xz
	lts.patch
	"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} \
		.
	make
}

check() {
	QT_QPA_PLATFORM=offscreen CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="0fddc873aad6e77c43d74aa5b2673ef7e815a477c2ad5f574c15a87ce68dfe39c786b3230d0d88891a6b039bfda935d3072343c3507faa2e0ebb3f775570ae7f  kdepim-apps-libs-20.08.1.tar.xz
af2d17c3e388790d94ff88860df1401d9cc76a043bf62007870441d20e005f0e58c6704357dadd0cba8ffabf8cc5f99d2a3654489ef6f5b7fa99caac1f0c730c  lts.patch"