summaryrefslogblamecommitdiff
path: root/user/kcalcore/APKBUILD
blob: 6123a52bd69267408ad76549bf79a326bd35a148 (plain) (tree)
1
2
3
4


                                                  
              










                                                                        
                                                                                        



















                                                                                          
                                                                                                                  






                                      
                                                                                                                                                                      
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kcalcore
pkgver=18.04.1
pkgrel=0
pkgdesc="Library for managing a calendar of events"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.0"
depends=""
depends_dev="qt5-qtbase-dev kconfig-dev kdelibs4support-dev libical-dev"
makedepends="$depends_dev cmake extra-cmake-modules bison"
checkdepends="tzdata"
install=""
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/applications/$pkgver/src/kcalcore-$pkgver.tar.xz"
builddir="$srcdir/kcalcore-$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 -E '(RecursOn-RFC2445_RRULETest39.ics|Compat-Mozilla|Compat-Evolution)'
}

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

sha512sums="2ce97d97b15bacec0ae208d5f987abc76d5b5712b99030c38170be5712adaeb76fb376d26bad42bde5fc144e3cc182c1e0430e885f4617d5514dd50a86635032  kcalcore-18.04.1.tar.xz"