diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 02:27:56 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-30 02:27:56 -0500 |
commit | d86bd045f7ee4ff434cc121513c1a237ec21315c (patch) | |
tree | 0abd725b95cd674b010fcc61a56b56d594fe2af4 | |
parent | 810c82e9cd930bf56f7680862d6a6ab10070579b (diff) | |
download | packages-d86bd045f7ee4ff434cc121513c1a237ec21315c.tar.gz packages-d86bd045f7ee4ff434cc121513c1a237ec21315c.tar.bz2 packages-d86bd045f7ee4ff434cc121513c1a237ec21315c.tar.xz packages-d86bd045f7ee4ff434cc121513c1a237ec21315c.zip |
user/ktexteditor: new package
-rw-r--r-- | user/ktexteditor/APKBUILD | 47 |
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" |