From d86bd045f7ee4ff434cc121513c1a237ec21315c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 30 Sep 2017 02:27:56 -0500 Subject: user/ktexteditor: new package --- user/ktexteditor/APKBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 user/ktexteditor/APKBUILD (limited to 'user/ktexteditor') 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 +# Maintainer: A. Wilcox +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" -- cgit v1.2.3-70-g09d2