aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kimap2/APKBUILD
blob: d5c1f256119f857d4b3b5b2b65e90e356a71174c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kimap2
pkgver=0.3.0
pkgrel=0
pkgdesc="Next-generation IMAP library"
arch="all !armhf" # qtdeclarative
url="https://community.kde.org/KDE_PIM"
license="LGPL-2.0-or-later AND GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev kcoreaddons-dev kcodecs-dev kmime-dev cyrus-sasl-dev"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/unstable/kimap2/$pkgver/src/kimap2-$pkgver.tar.xz"
subpackages="$pkgname-dev"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

check() {
	cd build
	# loginjobtest is broken https://invent.kde.org/pim/kimap2/-/issues/1
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "loginjobtest"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install

	# Remove installed test files
	rm -r \
		"$pkgdir"/usr/lib/libkimap2test.a \
		"$pkgdir"/usr/include/kimap2test
}
sha512sums="a351fbd8a2c532a963d488c64fc497d05be3521fb2ddf2d942a9c2ebc6a76068f509c283c6335dee03c9ff1a6df294fa69b2033874d33dc6a860b70e1d4e973a  kimap2-0.3.0.tar.xz"