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


                                                   
                                                                           
                       
                                           
                                                                           






                                                                             

                                                                                
                                                     

                                                                                    
                     
         

         









                                                                                          
                                     
                                    



            



                                          


                                      


                                                                                                                                                                          
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox-kde@adelielinux.org>
pkgname=plasma-desktop
pkgver=5.12.9
pkgrel=0
pkgdesc="Modern, functional, integrated libre desktop environment"
url="https://www.kde.org/plasma-desktop"
arch="all"
options="!check"  # Test suite fails due to keyboard layouts
license="GPL-2.0 LGPL-2.1"
# 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 consolekit2 kdeclarative"
makedepends="cmake 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 kwin-dev kscreenlocker-dev baloo-dev xcb-util-image-dev
	xf86-input-libinput-dev breeze-dev xkeyboard-config extra-cmake-modules"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-desktop-$pkgver.tar.xz
	cmake-fixes.patch
	headers.patch
	"

build() {
	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() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="0fea993cb522f3e17ccae95e47ed4f4d44f91e9288e962f95fd7b410f09fbf8a8e7b0d20505d3d8bcc8805a38824b52a9c9c718b6e895db14a6c753dabedd824  plasma-desktop-5.12.9.tar.xz
45119bbd7b6f7803323410acac6c5cb2be232f776e6009938e932976091ca188f4a52ba0bca814212353856a8eb87700d86b2452d9cb925c4f6f1bf3577065b7  cmake-fixes.patch
38711ee002c1d5e38175cf010fc21e86348c2824a20f39616c87c295f4dd62b6fe4a1ea19aa9057502b6a7af095d1341cbca33c3fab8ff13264120164602787d  headers.patch"