summaryrefslogtreecommitdiff
path: root/user/kwin/APKBUILD
blob: cc9a1cf80486ec51b477fefb9fa75198bd500804 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kwin
pkgver=5.8.7
pkgrel=1
pkgdesc="Modern, stylish window manager (requires OpenGL)"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1"
options="!check"  # Requires accelerated X11 desktop
depends=""
depends_dev="qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtscript-dev kcrash-dev
	qt5-qtx11extras-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev
	kglobalaccel-dev ki18n-dev kinit-dev knotifications-dev kpackage-dev
	plasma-framework-dev kwidgetsaddons-dev kwindowsystem-dev kwayland-dev
	kiconthemes-dev kidletime-dev kcompletion-dev kdeclarative-dev kio-dev
	kcmutils-dev ktextwidgets-dev knewstuff-dev kservice-dev kxmlgui-dev
	kdecoration-dev kscreenlocker-dev wayland-dev mesa-dev libepoxy-dev
	eudev-dev libdrm-dev libx11-dev libxcb-dev xcb-util-cursor-dev
	xcb-util-image-dev xcb-util-wm-dev libxkbcommon-dev libinput-dev
	freetype-dev fontconfig-dev qt5-qtmultimedia-dev breeze-dev"
makedepends="$depends_dev cmake extra-cmake-modules qt5-qttools-dev python3"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://download.kde.org/stable/plasma/$pkgver/kwin-$pkgver.tar.xz
	kwin-5.8-stop-depending-on-qt5-internals.patch
	kwin-5.8-respect-uint.patch
	kwin-backport-gallium-version-detection.patch"
builddir="$srcdir/kwin-$pkgver"

build() {
	cd "$builddir"
	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() {
	cd "$builddir"
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="f1f3b01f85378e663385887add8dd5b2f40076cfc57f7cf638e83e2424fedb576b4b431b14151422ea43c535677131e61b8d9e7fe60e5a5f4ea06520c895bd1e  kwin-5.8.7.tar.xz
7186dd317204612ba26f11315238f527949424d08f32dc0dab8c1391d642529433cfd7091dc2a057fe849976dee70eed7aab3c8be55b20b8c0655da57976b48e  kwin-5.8-stop-depending-on-qt5-internals.patch
aaefa9951ec1475adf00784b202d0ca9f92a60634a869387432411e8b7928d9f10b46968998a4ada47228834e8c7f6c9bf1c8dd988673b22619e8e1295e086c7  kwin-5.8-respect-uint.patch
9c8cdb884defc3e16444b41de0c53e10774cef6d8d0a461376ba64cc3457dfe19579e13ce45df721e32643dddf518df7d787ee36bcba840ef1bf2b7009d9b1ab  kwin-backport-gallium-version-detection.patch"