summaryrefslogblamecommitdiff
path: root/user/kparts/APKBUILD
blob: 15e0f25198b3a95fddbac86a2a4fe41d73b57ae7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14


                                                  
             









                                                                             

                                                                               
          
                                                     
                                                                                     













                                                                                          
                                     













                                          
                                                                                                                                                                   
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kparts
pkgver=5.41.0
pkgrel=0
pkgdesc="Framework for user interface components"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
options="!check"  # Requires X11 running.
depends=""
depends_dev="qt5-qtbase-dev kconfig-dev kcoreaddons-dev ki18n-dev
	kiconthemes-dev kio-dev kjobwidgets-dev kservice-dev ktextwidgets-dev
	kwidgetsaddons-dev kxmlgui-dev"
makedepends="$depends_dev cmake extra-cmake-modules python3 gettext-dev doxygen
	graphviz qt5-qttools-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/frameworks/${pkgver%.*}/kparts-$pkgver.tar.xz"
builddir="$srcdir/kparts-$pkgver"

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" \
		-DBUILD_QCH:BOOL=ON \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="082971b4d7f017c03440c40ea4579ef3a8c75eac98b95a326255075a71bd98ae12c407c67049bcd46c4f65ba91d754c4f07c4253c7d6bc9269a4b0a80cb915da  kparts-5.41.0.tar.xz"