summaryrefslogblamecommitdiff
path: root/user/akonadi-contacts/APKBUILD
blob: 1e33e8a74467283546581ecbdaf537aecba114ab (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                            
                                     






                                                                            

                                                                                                


























                                                                                          
                                                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=akonadi-contacts
pkgver=18.04.1
pkgrel=0
pkgdesc="Library for integrating contact lists with Akonadi"
url="https://www.kde.org/"
arch="all"
options="!check"  # Tests require X11
license="LGPL-2.1 GPL-2.0 BSD-2"
depends=""
depends_dev="qt5-qtbase-dev kio-dev kcontacts-dev kmime-dev akonadi-mime-dev
	prison-dev"
makedepends="$depends_dev cmake extra-cmake-modules"
install=""
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/applications/$pkgver/src/akonadi-contacts-$pkgver.tar.xz"
builddir="$srcdir/akonadi-contacts-$pkgver"

build() {
	cd "$builddir"
	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() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="30c6f45fe5ccbc3394144388ffe6c3314c1a1fd85b67e58e0d606b14c31209091ac8f6e5281f22c295bc8bb45d2265a471cc4173952a406963046138ebada929  akonadi-contacts-18.04.1.tar.xz"