aboutsummaryrefslogtreecommitdiffstats
path: root/community/kmailtransport/APKBUILD
blob: 089c72136d9985e4f33c40b2b4fa4ecade1d6101 (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=kmailtransport
pkgver=20.12.1
pkgrel=0
pkgdesc="Manage mail transport"
arch="all !ppc64le !s390x !armhf !mips !mips64" # Limited by libkgapi -> qt5-qtwebengine
url="https://kontact.kde.org/"
license="LGPL-2.0-or-later"
depends_dev="kcmutils-dev kconfigwidgets-dev kwallet-dev ki18n-dev kio-dev kmime-dev akonadi-dev akonadi-mime-dev ksmtp-dev libkgapi-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmailtransport-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"
options="!check" # Requires OpenGL and running dbus

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 xvfb-run ctest
}

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