summaryrefslogblamecommitdiff
path: root/user/plasma-desktop/APKBUILD
blob: aa58559fcf28829acc2bd365746bd4a123a2ad65 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
             
        




                                                                  


                                                   
                                                                           
                       
                                          











                                                                             

                                                                                   












                                                                                          
                                     













                                          
                                                                                                                                                                           
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=plasma-desktop
pkgver=5.12.5
pkgrel=0
pkgdesc="Modern, functional, integrated libre desktop environment"
url="https://www.kde.org/info/plasma-desktop"
arch="all"
license="GPL-2.0 LGPL-2.1"
options="!check"  # Test suite fails due to keyboard layouts
# theme/visual dependencies
depends="breeze breeze-icons oxygen ttf-liberation"
# shell/QML dependencies
depends="$depends kde-cli-tools kded kwin qt5-qtgraphicaleffects setxkbmap"
# Good Ideas™ to have
depends="$depends consolekit kdeclarative"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtx11extras-dev
	qt5-qtsvg-dev kdelibs4support-dev xf86-input-synaptics-dev
	kauth-dev plasma-framework-dev kdoctools-dev ki18n-dev
	kcmutils-dev knewstuff-dev knotifications-dev knotifyconfig-dev
	attica-dev kwallet-dev krunner-dev kglobalaccel-dev kdeclarative-dev
	kpeople-dev kdbusaddons-dev kactivities-dev kactivities-stats-dev
	kconfig-dev kitemmodels-dev plasma-workspace-dev xf86-input-evdev-dev
	libxkbcommon-dev pulseaudio-dev libcanberra-dev libxkbfile-dev
	xorg-server-dev"
makedepends="$depends_dev cmake extra-cmake-modules xkeyboard-config"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/plasma/5.12.5/plasma-desktop-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-5.12.5"

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_TESTING=OFF \
		${CMAKE_CROSSOPTS}
	make
}

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

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

sha512sums="d19f8d640304bc1ffa0839e8ba453ddea76710f26fe580789c64e1b97d2a67c151ec62b2d0503fc35ad31cb8da4ef1125f3154e366b7f2bb4b8fb9bb2e0a6abb  plasma-desktop-5.12.5.tar.xz"