APKBUILD 1.9 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kwin
4
pkgver=5.17.4
5
pkgrel=0
Bart Ribbers's avatar
Bart Ribbers committed
6
pkgdesc="An easy to use, but flexible, composited Window Manager"
7
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
8 9 10 11
url="https://www.kde.org/workspaces/plasmadesktop/"
license="GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only) AND LGPL-2.1-only"
depends="qt5-qtwayland qt5-qtmultimedia kirigami2 xorg-server-xwayland"
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtscript-dev qt5-qtsensors-dev qt5-qtx11extras-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev kcrash-dev kglobalaccel-dev ki18n-dev kinit-dev knotifications-dev kpackage-dev plasma-framework-dev kwidgetsaddons-dev kwindowsystem-dev kiconthemes-dev kidletime-dev kwayland-dev kcompletion-dev kdeclarative-dev kcmutils-dev kio-dev ktextwidgets-dev knewstuff-dev kservice-dev kxmlgui-dev kactivities-dev kdecoration-dev kscreenlocker-dev breeze-dev libepoxy-dev mesa-dev wayland-dev xcb-util-cursor-dev xcb-util-image-dev xcb-util-wm-dev libinput-dev eudev-dev libdrm-dev mesa-gbm fontconfig-dev libxkbcommon-dev libxi-dev"
12
makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev qt5-qttools-static kdoctools-dev"
Bart Ribbers's avatar
Bart Ribbers committed
13
checkdepends="xvfb-run"
14
source="https://download.kde.org/stable/plasma/$pkgver/kwin-$pkgver.tar.xz"
Bart Ribbers's avatar
Bart Ribbers committed
15 16 17
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
options="!check" # Broken

18 19 20 21 22 23
prepare() {
	default_prepare

	mkdir "$builddir"/build
}

Bart Ribbers's avatar
Bart Ribbers committed
24
build() {
25 26
	cd "$builddir"/build
	cmake "$builddir" \
Bart Ribbers's avatar
Bart Ribbers committed
27 28 29 30 31 32 33
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make
}

check() {
34
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
35 36 37 38
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
39
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
40 41
	DESTDIR="$pkgdir" make install
}
42
sha512sums="457dd5a0d89ed75b10edcbdbfda909bae03c9ab2e2fc617bcfc96f8c5f2729f01d866ee5b7384da6eb785292aabee64b55f7f0f38e9952062e219924ca045def  kwin-5.17.4.tar.xz"