blob: 057fe373f4e21df88ebdac2d0d63ceee85f4c32e (
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
46
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kwrite
pkgver=19.04.3
pkgrel=1
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"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/applications/$pkgver/src/kate-$pkgver.tar.xz"
builddir="$srcdir/kate-$pkgver"
subpackages="$pkgname-doc $pkgname-lang"
prepare() {
default_prepare
# Remove colliding Kate translations
find po -type f -name "*po" -and -not -name "kwrite*" -delete
rm -r po/*/docs/kate*
}
build() {
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_kate=FALSE \
-DBUILD_addons=FALSE
make
}
check() {
# kateapp-session_manager_test broken
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}
package() {
DESTDIR="$pkgdir" make install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
mv "$pkgdir"/usr/share/doc/HTML "$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="57ea4a527307dd45818b7e3f1b59ac346f5e82090b01fb010d4e3e31d00eda9c1b8e554ab203c3320fa073fbd65e775e27375f254f05f2dee512a32ef09bc218 kate-19.04.3.tar.xz"
|