aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kate/APKBUILD
blob: 0b816903fb575caa8557b2a9f55d1dc5f7616907 (plain)
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
44
45
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kate
pkgver=19.08.0
pkgrel=0
arch="all"
url="https://kde.org/applications/utilities/org.kde.kate"
pkgdesc="A multi-document, multi-view text editor"
license="LGPL-2.0-only AND LGPL-2.0-or-later"
makedepends="extra-cmake-modules qt5-qtbase-dev kconfig-dev kcrash-dev ki18n-dev kjobwidgets-dev kio-dev kparts-dev ktexteditor-dev kwindowsystem-dev kxmlgui-dev kiconthemes-dev kactivities-dev kdoctools-dev plasma-framework-dev kitemmodels-dev threadweaver-dev knewstuff-dev"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

prepare() {
	default_prepare

	# Remove colliding Kwrite translations
	find po -type f -name "*po" -and -name "kwrite*" -delete
	rm -r po/*/docs/kwrite
}

build() {
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_kwrite=FALSE
	make
}

check() {
	# kateapp-session_manager_test broken
	# kateapp-sessions_action_test requires OpenGL
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(kateapp-session_manager|kateapp-sessions_action)_test"
}

package() {
	DESTDIR="$pkgdir" make install

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	mv "$pkgdir"/usr/share/doc/HTML "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="5fea2010fd18585ebc8fc99e01a5815655f835a9a03528f236eefe3995977013d0610cf525bf99d8ae307ee3d9b107d0dae1491cb9ce1a46ac0f92de90da6d28  kate-19.08.0.tar.xz"