summaryrefslogtreecommitdiff
path: root/user/qt5-qtwayland/APKBUILD
blob: 482cc18df3ce1f3d208455db26b83d42a581f7a0 (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
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=qt5-qtwayland
_pkgname=qtwayland-everywhere-src
pkgver=5.12.9
pkgrel=0
pkgdesc="Unstable Qt platform module for experimental Wayland display system"
url="https://www.qt.io/"
arch="all"
options="!check"
license="LGPL-3.0-only WITH Qt-LGPL-exception-1.1 OR GPL-3.0-only WITH Qt-GPL-exception-1.0"
depends=""
makedepends="libxkbcommon-dev mesa-dev qt5-qtbase-dev wayland-dev"
subpackages="$pkgname-dev $pkgname-client $pkgname-compositor $pkgname-tools"
install_if="qt5-qtbase~$pkgver wayland"
source="https://download.qt.io/official_releases/qt/${pkgver%.*}/$pkgver/submodules/$_pkgname-$pkgver.tar.xz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	qmake
	make
}

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

client() {
	pkgdesc="Qt client library for experimental Wayland display system"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libQt5WaylandClient* "$subpkgdir"/usr/lib/
}

compositor() {
	pkgdesc="Unstable Qt compositor library for experimental Wayland display system"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libQt5WaylandCompositor* "$subpkgdir"/usr/lib/
}

tools() {
	pkgdesc="Tools for Qt integration with experimental Wayland display system"
	mkdir -p "$subpkgdir"/usr/lib/qt5
	mv "$pkgdir"/usr/lib/qt5/bin "$subpkgdir"/usr/lib/qt5/
}

sha512sums="9a1b37736cc87da09123ce3b21709ea34d1171c35c27636b90c5c18e95bfa8a1ac2807c6b54e7672d967cd81cff90461f56de86aad8d5fa647434016f5fb7e12  qtwayland-everywhere-src-5.12.9.tar.xz"