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


                                                  
             



                                          
                                                                

                                                                                                                                               
                       
                                                                                           
                                                     
 

                       
 


                               
         

                            
                                                   






                                             
                            
                                                   


           
                            

                                      
                                                                                                                                                                        
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ktexteditor
pkgver=5.65.0
pkgrel=0
pkgdesc="Advanced embeddable text editor"
arch="all"
url="https://community.kde.org/Frameworks"
license="LGPL-2.0-or-later AND (LGPL-2.0-only OR LGPL-3.0-only)"
depends_dev="karchive-dev kconfig-dev kguiaddons-dev ki18n-dev kio-dev kparts-dev sonnet-dev kiconthemes-dev syntax-highlighting-dev kauth-dev"
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev doxygen"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/ktexteditor-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QCH=ON
	make
}

check() {
	cd "$builddir"/build
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}
sha512sums="78239f49155809fd36ac82ee98c7ddb46d95aa1ed972b88b34757e6ae726f03427ade86441691344934da7fcc2f132035c62e19e960e65a026c1e06fb48345ff  ktexteditor-5.65.0.tar.xz"