summaryrefslogblamecommitdiff
path: root/user/kdeplasma-addons/APKBUILD
blob: 9fb56a817703cbbc3b1312ddd3c0a3df4705ce74 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                                  
                                                     
                        
             








                                                                           

                                                                            
                           
                                                                                       
 
         










                                                                                          


                         


         
                                                       


           
                                               

 
                                                                                                                                                                             
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox-kde@adelielinux.org>
pkgname=kdeplasma-addons
pkgver=5.18.0
pkgrel=0
pkgdesc="Extra applets and toys for KDE Plasma"
url="https://www.kde.org/"
arch="all"
license="GPL-2.0+ AND LGPL-2.1-only"
depends="qt5-qtquickcontrols qt5-qtquickcontrols2"
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev
	qt5-qtx11extras-dev kactivities-dev kconfig-dev kconfigwidgets-dev
	kcmutils-dev kcoreaddons-dev kdoctools-dev ki18n-dev knewstuff-dev
	kross-dev krunner-dev kservice-dev kunitconversion-dev kholidays-dev
	plasma-framework-dev plasma-workspace-dev"
subpackages="$pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/kdeplasma-addons-$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} \
		-Bbuild \
		.
	make -C build
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
}

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

sha512sums="d6cb3daf39949e2fe2221cfce48a55ecfffb328ed46ca69da45f42b4323107bb9b908f40975f6f76cf7b1dc1a3481cf597287b46df003b3d3913df18d85f590a  kdeplasma-addons-5.18.0.tar.xz"