summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/ktexteditor/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/ktexteditor/APKBUILD b/user/ktexteditor/APKBUILD
new file mode 100644
index 000000000..31c7f26d3
--- /dev/null
+++ b/user/ktexteditor/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=ktexteditor
+pkgver=5.38.0
+pkgrel=0
+pkgdesc="Reusable, programmable text editor widget"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1"
+options="!check" # Requires running X11 session.
+depends=""
+depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtxmlpatterns-dev
+ karchive-dev kconfig-dev kguiaddons-dev ki18n-dev kio-dev kparts-dev
+ syntax-highlighting-dev"
+makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-lang"
+source="http://download.kde.org/stable/frameworks/5.38/ktexteditor-$pkgver.tar.xz"
+builddir="$srcdir/ktexteditor-$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
+}
+
+sha512sums="7032eecd9e28ce744bca86c1d2bdd71aa7e44d1797f9177b01e0dcc9080ee5869a6db2cab268b43f6b7e91c944a58c32368616e5b6ca7b671f44d11ed8ca4e60 ktexteditor-5.38.0.tar.xz"