mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
77 lines
2.1 KiB
Text
77 lines
2.1 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=kpimtextedit
|
|
pkgver=22.12.3
|
|
pkgrel=0
|
|
pkgdesc="Advanced text editor which provide advanced html feature"
|
|
# armhf blocked by extra-cmake-modules
|
|
arch="all !armhf"
|
|
url="https://api.kde.org/kdepim/kpimtextedit/html"
|
|
license="LGPL-2.0-or-later AND GPL-2.0-or-later"
|
|
depends_dev="
|
|
grantlee-dev
|
|
kcodecs-dev
|
|
kconfig-dev
|
|
kconfigwidgets-dev
|
|
kcoreaddons-dev
|
|
kemoticons-dev
|
|
ki18n-dev
|
|
kiconthemes-dev
|
|
kio-dev
|
|
kwidgetsaddons-dev
|
|
kxmlgui-dev
|
|
qt5-qtbase-dev
|
|
qt5-qtspeech-dev
|
|
sonnet-dev
|
|
syntax-highlighting-dev
|
|
"
|
|
makedepends="
|
|
$depends_dev
|
|
extra-cmake-modules
|
|
qt5-qttools-dev
|
|
samurai
|
|
"
|
|
checkdepends="xvfb-run"
|
|
source="https://download.kde.org/stable/release-service/$pkgver/src/kpimtextedit-$pkgver.tar.xz"
|
|
subpackages="$pkgname-dev $pkgname-lang"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_DESIGNERPLUGIN=ON
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
|
|
# kpimtextedit-plaintext-textgotolinewidgettest,
|
|
# kpimtextedit-composerng-richtextcomposertest and
|
|
# kpimtextedit-composerng-richtextcomposercontrolertest require OpenGL
|
|
# kpimtextedit-texttospeech-texttospeechwidgettest requires texttospeech
|
|
# kpimtextedit-texttospeech-texttospeechactionstest and
|
|
# kpimtextedit-grantleebuilder-texthtmlbuildertest are broken
|
|
local skipped_tests="kpimtextedit-("
|
|
local tests="
|
|
plaintext-textgotolinewidget
|
|
texttospeech-texttospeechwidget
|
|
texttospeech-texttospeechactions
|
|
composerng-richtextcomposer
|
|
composerng-richtextcomposercontroler
|
|
grantleebuilder-texthtmlbuilder
|
|
"
|
|
for test in $tests; do
|
|
skipped_tests="$skipped_tests|$test"
|
|
done
|
|
skipped_tests="$skipped_tests)test"
|
|
CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests"
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
sha512sums="
|
|
4c1283fda9d78e2ccddd4f03e654411f7141bed85c47f4a015ed0620df1d03cdc35b66fbad8cd1b8eda61d699183bab25f06a8808ad55c0b95b3e9b654eb37c2 kpimtextedit-22.12.3.tar.xz
|
|
"
|