aboutsummaryrefslogtreecommitdiffstats
path: root/community/kmbox/APKBUILD
blob: 1ba7c275b7df7c5b7549a62a1f98c8cb1fdd17bc (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kmbox
pkgver=20.12.1
pkgrel=0
pkgdesc="Library for accessing mail storages in MBox format"
# armhf blocked by extra-cmake-modules
# mips, mips64 and s390x blocked by kmime
arch="all !armhf !mips !mips64 !s390x"
url="https://kontact.kde.org/"
license="LGPL-2.0-or-later"
depends_dev="kmime-dev"
makedepends="$depends_dev extra-cmake-modules"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmbox-$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
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="be865e90f6be716ad5b6f849c263e1b34cf90f01e0ec8d1f8c59a080b8cdc2777cb4589f6c36e0b48f339fe5b94bbbdc27a7a355922c88075b0d7ed6646614b7  kmbox-20.12.1.tar.xz"