blob: 290b0244aa457febd207d737248c90a4cf9ddb82 (
plain)
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
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtwayland
pkgver=5.15.3_git20211028
pkgrel=0
_commit="992833ca741efe8f533c61abfaf129a1d8bfcfee"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
url="https://www.qt.io/developers/"
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
pkgdesc="Provides APIs for Wayland"
depends_dev="
libxcomposite-dev
libxkbcommon-dev
qt5-qtquickcontrols2-dev
wayland-dev
"
makedepends="$depends_dev
qt5-qtbase-dev
qt5-qtdeclarative-dev
vulkan-headers
"
subpackages="$pkgname-dev"
# Make sure this package is installed when a Qt application is installed and a
# Wayland session is available on the system
install_if="wayland-libs-client qt5-qtbase"
builddir="$srcdir/qtwayland-$_commit"
source="https://invent.kde.org/qt/qt/qtwayland/-/archive/$_commit/qtwayland-$_commit.tar.gz"
prepare() {
default_prepare
# We need to make the build system think we're running in a git repository
# so it correctly symlinks during the build
mkdir .git
}
build() {
qmake-qt5
make
}
check() {
make check
}
package() {
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}
sha512sums="
3520a7b8b27703b3306a5e852498c1805f359e09d2622ed53b5ee2038e6e99d3d0132f47d78167cdf4a1d1f0d4955f8440cec897fcc4dc24f7d3a3a7a493c584 qtwayland-992833ca741efe8f533c61abfaf129a1d8bfcfee.tar.gz
"
|