summaryrefslogblamecommitdiff
path: root/user/kimap/APKBUILD
blob: d1fcb263a52ca57b8daa3fd94d8fc152df2f2aba (plain) (tree)
1
2
3
4


                                                  
              







































                                                                                          
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kimap
pkgver=17.08.2
pkgrel=0
pkgdesc="IMAP framework for KDE"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0"
depends=""
depends_dev="qt5-qtbase-dev kcoreaddons-dev ki18n-dev kmime-dev cyrus-sasl-dev
	kio-dev"
makedepends="$depends_dev cmake extra-cmake-modules"
install=""
subpackages="$pkgname-dev $pkgname-lang"
source="http://download.kde.org/stable/applications/$pkgver/src/kimap-$pkgver.tar.xz"
builddir="$srcdir/kimap-$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="f776850d3604c5e59cfc46bf55baaea5cd81b5a39c10222508573dc97fed97bf201e7cfc529425cb571eb804b9eeb05d2f859a4e3a9cbf406c8e3b31c3ac44a0  kimap-17.08.2.tar.xz"