summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-30 03:44:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-09-30 03:44:29 -0500
commite12a1cb1b348ca0a2c940839bd66ae14850f3fc7 (patch)
tree6d5ce1b4af8802406e43da959877ad14db5a3981 /user
parent069ea78b23328002a08f3bf7dee6eb62d8cb2d1a (diff)
downloadpackages-e12a1cb1b348ca0a2c940839bd66ae14850f3fc7.tar.gz
packages-e12a1cb1b348ca0a2c940839bd66ae14850f3fc7.tar.bz2
packages-e12a1cb1b348ca0a2c940839bd66ae14850f3fc7.tar.xz
packages-e12a1cb1b348ca0a2c940839bd66ae14850f3fc7.zip
user/kate: new package (TODO: split better)
Diffstat (limited to 'user')
-rw-r--r--user/kate/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/user/kate/APKBUILD b/user/kate/APKBUILD
new file mode 100644
index 000000000..c8f60ad89
--- /dev/null
+++ b/user/kate/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kate
+pkgver=17.08.1
+pkgrel=0
+pkgdesc="Advanced text editor with autocomplete, syntax highlighting, and more"
+url="https://kate-editor.org/"
+arch="all"
+license="LGPL-2.1 LGPL-3.0 GPL-3.0"
+depends=""
+makedepends="$depends_dev cmake extra-cmake-modules qt5-qtbase-dev python3
+ qt5-qtscript-dev kconfig-dev kcrash-dev ki18n-dev kjobwidgets-dev
+ kio-dev kparts-dev ktexteditor-dev kwindowsystem-dev kxmlgui-dev
+ kiconthemes-dev kdoctools-dev kwallet-dev kservice-dev kitemmodels-dev
+ knewstuff-dev threadweaver-dev libgit2-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang $pkgname-project"
+source="http://download.kde.org/stable/applications/$pkgver/src/kate-$pkgver.tar.xz"
+builddir="$srcdir/kate-$pkgver"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+project() {
+ pkgdesc="KDE Advanced Text Editor - Plugin for project management"
+ mkdir -p "$subpkgdir"/usr/lib/qt5/plugins/ktexteditor/
+ mv "$pkgdir"/usr/lib/qt5/plugins/ktexteditor/kateprojectplugin.so \
+ "$subpkgdir"/usr/lib/qt5/plugins/ktexteditor/
+}
+
+sha512sums="19e6434fad31d420a5742cf0f0f4f1c8718ea6efdb3132d9c3157d9b083a388d26f347dc70c19b55cf6d65747e3ef98eaf9ee18da5efe8872e73b36d630430fa kate-17.08.1.tar.xz"