diff options
author | Bart Ribbers <bribbers@disroot.org> | 2019-06-20 18:29:26 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-20 19:24:53 -0300 |
commit | 22fb9227f1794acb19e4d334707c7f7774d8574b (patch) | |
tree | a049b90875ab1eab35bbbdf8bb16415ef5e86f42 /testing/kwrite | |
parent | 6ec751c7da567714a0660d4b0078ec95071c99ef (diff) | |
download | aports-22fb9227f1794acb19e4d334707c7f7774d8574b.tar.bz2 aports-22fb9227f1794acb19e4d334707c7f7774d8574b.tar.xz |
testing/kwrite: new aport
Diffstat (limited to 'testing/kwrite')
-rw-r--r-- | testing/kwrite/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/kwrite/APKBUILD b/testing/kwrite/APKBUILD new file mode 100644 index 0000000000..127caaed79 --- /dev/null +++ b/testing/kwrite/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Bart Ribbers <bribbers@disroot.org> +# Maintainer: Bart Ribbers <bribbers@disroot.org> +pkgname=kwrite +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" +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 +} + +sha512sums="568af7df0588d65f386f482f944b44c7bacffeecf374fce4b4e276be8ca556cbf983c2df2e99a3900c15bd7dfaa0d71b6540c37b4c2773a5293b3e5cba1d3939 kate-19.04.2.tar.xz" |