aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kate/APKBUILD
blob: cf815329d20f7dd7014fe1c0e6add19fd7945ea7 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kate
pkgver=19.04.2
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
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kateapp-session_manager_test"
}

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

sha512sums="568af7df0588d65f386f482f944b44c7bacffeecf374fce4b4e276be8ca556cbf983c2df2e99a3900c15bd7dfaa0d71b6540c37b4c2773a5293b3e5cba1d3939  kate-19.04.2.tar.xz"