aboutsummaryrefslogtreecommitdiffstats
path: root/community/kpimtextedit/APKBUILD
blob: 15434201d0c094088cc35f02f72115707c104357 (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
38
39
40
41
42
43
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpimtextedit
pkgver=20.08.2
pkgrel=0
pkgdesc="Advanced text editor which provide advanced html feature"
arch="all !armhf !s390x" # kconfigwidgets kiconthemes kio kxmlgui
url="https://api.kde.org/kdepim/kpimtextedit/html"
license="LGPL-2.0-or-later AND GPL-2.0-or-later"
depends_dev="qt5-qtbase-dev qt5-qtspeech-dev grantlee-dev kcodecs-dev
	kconfig-dev kconfigwidgets-dev kcoreaddons-dev kemoticons-dev
	ki18n-dev kiconthemes-dev kio-dev sonnet-dev syntax-highlighting-dev
	kwidgetsaddons-dev kxmlgui-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/kpimtextedit-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build

	# kpimtextedit-plaintext-textgotolinewidgettest requires OpenGL
	# kpimtextedit-texttospeech-texttospeechwidgettest requires texttospeech
	# kpimtextedit-texttospeech-texttospeechactionstest is broken
	# kpimtextedit-composerng-richtextcomposertest requires OpenGL
	# kpimtextedit-composerng-richtextcomposercontrolertest requires OpenGL
	# kpimtextedit-grantleebuilder-texthtmlbuildertest is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kpimtextedit-(plaintext-textgotolinewidget|texttospeech-texttospeechwidget|texttospeech-texttospeechactions|composerng-richtextcomposer|composerng-richtextcomposercontroler|grantleebuilder-texthtmlbuilder)test"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="e2c0b4d39a160acccec85ff1edc20c774c81c4bb37eae124c004ec2e5d115dba1b7246f44f8c86826d93bb19126a438ed5cd1f2f9e90af8723e7e36cdff6707a  kpimtextedit-20.08.2.tar.xz"