summaryrefslogblamecommitdiff
path: root/user/systemsettings/APKBUILD
blob: cd8a63c40b42b5fa1fc2e455b1272aa2058c99b5 (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=systemsettings
pkgver=5.18.2
pkgrel=0
pkgdesc="KDE system settings configuration utility"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0+"
depends="kirigami2"
depends_dev="qt5-qtbase-dev kitemviews-dev kservice-dev kwidgetsaddons-dev"
makedepends="$depends_dev cmake extra-cmake-modules kactivities-stats-dev
	kactivities-dev kauth-dev kcmutils-dev kcompletion-dev kconfig-dev
	kconfigwidgets-dev kcoreaddons-dev kdbusaddons-dev khtml-dev ki18n-dev
	kiconthemes-dev kitemmodels-dev kio-dev kirigami2-dev kwindowsystem-dev
	kxmlgui-dev libkworkspace-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/systemsettings-$pkgver.tar.xz"

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" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="627d88fb0dbec4faf9637353e04ed897f0c15518964fc4b902f7825d525f258f52e171b285eb7fcea7c9fa0eb6d36444eb7bb9bf78517281fa6933f8b01c3c0b  systemsettings-5.18.2.tar.xz"