summaryrefslogblamecommitdiff
path: root/user/khotkeys/APKBUILD
blob: fb88574bdba4e783594841e40aef918c4ed1b618 (plain) (tree)
1
2
3
4
                                                  
                                                     
                
             










                                                                              


                                                                              

         









                                                                                          
                                    



            



                                          


                                      
                                                                                                                                                                    
                                                                                                                                                    
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox-kde@adelielinux.org>
pkgname=khotkeys
pkgver=5.12.9
pkgrel=0
pkgdesc="Hot key mapping for KDE Plasma 5"
url="https://www.KDE.org/"
arch="all"
license="LGPL-2.0+"
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev kcmutils-dev
	kdbusaddons-dev kdelibs4support-dev kglobalaccel-dev ki18n-dev kio-dev
	kxmlgui-dev libice-dev libx11-dev plasma-framework-dev
	plasma-workspace-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/plasma/$pkgver/khotkeys-$pkgver.tar.xz
	cmake-fixes.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" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="c2d047b0d7a461f5a1bfa3bdea7e93c40238251e6c1a3edec710f044de02c2f69287a8f2d6cf6f166d448e306d8f7be9199a710ab0e5d1c3d1e2af8a0c234398  khotkeys-5.12.9.tar.xz
1c2558d8b142bc1de236e35b8f55a825f55d4c38c2b5cb2fbf02dcae1128325f45b15246f9c9d874d1afd2a4483df8501877121c6052b6d067892c5fbeca1dc5  cmake-fixes.patch"