summaryrefslogblamecommitdiff
path: root/user/plasma-workspace/APKBUILD
blob: 0bb3216e4762b60d7ff1260556a61b82f339392e (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-workspace
pkgver=5.12.9
pkgrel=0
pkgdesc="KDE Plasma 5 workspace"
url="https://www.kde.org/plasma-desktop"
arch="all"
options="!check"  # Test requires X11 accelration.
license="(GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1+ AND GPL-2.0+ AND MIT AND LGPL-2.1-only AND LGPL-2.0+ AND (LGPL-2.1-only OR LGPL-3.0-only) AND LGPL-2.0-only"
# startkde shell script calls
depends="kinit qdbus qtpaths xmessage xprop xset xsetroot"
# font installation stuff
depends="$depends mkfontdir"
# QML deps
depends="$depends qt5-qtgraphicaleffects qt5-qtquickcontrols solid"
# other runtime deps / plugins
depends="$depends libdbusmenu-qt kcmutils kde-cli-tools kded kdesu kio-extras
	ksysguard kwin milou plasma-integration pulseaudio-utils iso-codes xrdb"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev kdelibs4support-dev
	kitemmodels-dev kservice-dev kwindowsystem-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qtscript-dev
	iso-codes-dev libdbusmenu-qt-dev libqalculate-dev libxtst-dev
	xcb-util-image-dev

	baloo-dev kactivities-dev kcmutils-dev kcrash-dev kdbusaddons-dev
	kdeclarative-dev kdesu-dev kdoctools-dev kglobalaccel-dev kholidays-dev
	kidletime-dev kjsembed-dev knewstuff-dev knotifyconfig-dev kpackage-dev
	krunner-dev kscreenlocker-dev ktexteditor-dev ktextwidgets-dev
	kwallet-dev kwayland-dev kwin-dev kxmlrpcclient-dev libksysguard-dev
	plasma-framework-dev prison-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/plasma-workspace-$pkgver.tar.xz
	cmake-fixes.patch
	header.patch
	session-conflict.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="d96df6642f8d4c134381d8b186ec8766f0dffa3ebeb11f32242817d500e805e4d6c8df1471b1bdeb95a7778b6e9cd0daf1f72c04f834cc35bd14f1be9749e705  plasma-workspace-5.12.9.tar.xz
148195f34938c8f2ffd80d25bc07725e4e2a64296ec6292f7d8e739f1ab535f676683aa5d0ad41e1e085394ce733f5d25727cf44d55010488b8139ca9c9af135  cmake-fixes.patch
9934721c58ed514e55365a9b2e0410ee76fcf444a660ce9086d3aa46ca9fea708866e53c2f33a33a79ea4af13edee102a8bea9ca0bd280a6306527b6e5f46dd5  header.patch
2212bcafc53d6c9688265aed8ebceddeec23f6e73804ece955ac4006beb862dccbd93076ab357bbbef2d0953976a3347c8a1e5d2fa2654b5a7120abc288ea8ba  session-conflict.patch"