aboutsummaryrefslogblamecommitdiffstats
path: root/community/kpimtextedit/APKBUILD
blob: 7f181226c91aac925437846895cd24ab6e96d273 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
              
        
                                                                  
                 


                                                                                                                                                                                                                                        
                                                              
                       
                                                                                                


                                        
                        
                                         

                                             
                                         
                           


         

                




                                                                                

                                                                                                                                                                                                                                                                          


           
                                                              
 
                                                                                                                                                                          
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kpimtextedit
pkgver=20.08.1
pkgrel=0
pkgdesc="Advanced text editor which provide advanced html feature"
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="qt5-qtbase-dev qt5-qtspeech-dev grantlee-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kemoticons-dev ki18n-dev kiconthemes-dev kio-dev sonnet-dev syntax-highlighting-dev kwidgetsaddons-dev kxmlgui-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev"
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 \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_DESIGNERPLUGIN=ON
	cmake --build build
}

check() {
	cd build

	# kpimtextedit-plaintext-textgotolinewidgettest requires OpenGL
	# kpimtextedit-texttospeech-texttospeechwidgettest requires texttospeech
	# kpimtextedit-texttospeech-texttospeechactionstest is broken
	# kpimtextedit-composerng-richtextcomposertest requires OpenGL
	# kpimtextedit-composerng-richtextcomposercontrolertest requires OpenGL
	# kpimtextedit-grantleebuilder-texthtmlbuildertest is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "kpimtextedit-(plaintext-textgotolinewidget|texttospeech-texttospeechwidget|texttospeech-texttospeechactions|composerng-richtextcomposer|composerng-richtextcomposercontroler|grantleebuilder-texthtmlbuilder)test"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="778a5d51fcd37f1003437e2929990ca0b0aadd80855798184e379d1d2ae09e6f1ba7a23249e36f96d076782f8121284faf2b9f2b35a339e97c6f176d4ff8e229  kpimtextedit-20.08.1.tar.xz"