summaryrefslogblamecommitdiff
path: root/user/sddm-kcm/APKBUILD
blob: c587a8dab6cea01779b4bedb97a63ab240a92111 (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=sddm-kcm
pkgver=5.18.3
pkgrel=0
pkgdesc="KDE configuration applet for SDDM"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0+ AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1+ AND GPL-2.0-only"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtx11extras-dev
	qt5-qtdeclarative-dev kcoreaddons-dev ki18n-dev kxmlgui-dev kauth-dev
	kconfigwidgets-dev kio-dev libxcb-dev xcb-util-image-dev libxcursor-dev
	knewstuff-dev"
install_if="systemsettings sddm"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/sddm-kcm-$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="136aa673463fa9621c026af240115d5a6ddb7826f107e7c138f9549eee98b08576333ff09ea7573bb5ce1d9d8cf8a8b582fe8d627e08a0ee9943bf7badee0233  sddm-kcm-5.18.3.tar.xz"