blob: 5f72f2b84d1aa28075d6fe5d41eb991ea314149d (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=ktexteditor
pkgver=5.94.0
pkgrel=0
pkgdesc="Reusable, programmable text editor widget"
url="https://www.kde.org/"
arch="all"
options="!check" # Requires running X11 session.
license="LGPL-2.0+"
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 libgit2-dev"
docdepends="kparts-doc kio-doc kxmlgui-doc ktextwidgets-doc kcoreaddons-doc
kservice-doc kcompletion-doc kwidgetsaddons-doc kjobwidgets-doc
kbookmarks-doc kitemviews-doc solid-doc kwindowsystem-doc kconfig-doc
kconfigwidgets-doc sonnet-doc ki18n-doc kcodecs-doc kauth-doc"
makedepends="$depends_dev cmake extra-cmake-modules python3 doxygen graphviz
qt5-qttools-dev $docdepends"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/ktexteditor-$pkgver.tar.xz"
# secfixes:
# 5.52.0-r0:
# - CVE-2018-10361
build() {
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" \
-DBUILD_QCH:BOOL=ON \
${CMAKE_CROSSOPTS} .
make
}
check() {
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="cb42219ca4e2009c7df3adc85f45814e04da65e40490a37928b43623dd19c3567451c50b31d909fb08fa508c5e043016ec2f9789524ff248a27850c536fd9016 ktexteditor-5.94.0.tar.xz"
|