summaryrefslogblamecommitdiff
path: root/user/kpimtextedit/APKBUILD
blob: 386ca2afc252b60ea39d67c3f18c354bc4b28c4c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              



                                                              
                                                    
                                
          
                                                                      
                                    

                                                                               

                                                                              
                                        


                                                                                            


























                                                                                          
                                                                                                                                                                         
                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kpimtextedit
pkgver=19.04.2
pkgrel=0
pkgdesc="Text editor for Personal Information Managers (PIMs)"
url="https://pim.kde.org/"
arch="all"
options="!check"  # Test suite requires X11 running.
license="LGPL-2.1+ AND GPL-2.0+"
depends=""
depends_dev="qt5-qtbase-dev kwidgetsaddons-dev syntax-highlighting-dev
	ktextwidgets-dev sonnet-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev ki18n-dev
	grantlee-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev
	kdesignerplugin-dev kemoticons-dev kiconthemes-dev kio-dev kxmlgui-dev
	qt5-qtspeech-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.kde.org/stable/applications/$pkgver/src/kpimtextedit-$pkgver.tar.xz
	qt5.9.patch
	"

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="c928d3cc1690d04cd0c7b8d3fe963c479bd00cef4e0fdcdd28a98d22bb193195e8831ba71779a6017c3de8e10ab828335e1b5b20922b3d97bbf01b178ed61065  kpimtextedit-19.04.2.tar.xz
13f90299735e145142f969ffb6462b71c1cd85d5503c3902af924388042396526ff8b943229462e0ff7e5030393e5312dd67b8dfc66efec81f4f05ac15f86091  qt5.9.patch"