aboutsummaryrefslogtreecommitdiffstats
path: root/community/xwayland/APKBUILD
blob: aed40fa06df2dcfe2e5aa43e5dcf7709e17e67b7 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=xwayland
pkgver=21.1.0
pkgrel=3
pkgdesc="Compact xserver to run under wayland for compatibility"
url="https://www.x.org/wiki"
arch="all"
license="MIT"
options="suid"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
depends="xorg-server-common xkbcomp"
depends_dev="
	nettle-dev
	libepoxy-dev
	libxfont2-dev
	pixman-dev
	xorgproto
	xtrans
	libxkbfile-dev
	dbus-dev
	font-util-dev
	wayland-dev
	wayland-protocols
	libdrm-dev
	libtirpc-dev
	mesa-dev
	"
makedepends="
	$depends_dev
	meson
	"
source="https://gitlab.freedesktop.org/xorg/xserver/-/archive/xwayland-$pkgver/xserver-xwayland-$pkgver.tar.gz
	"
builddir="$srcdir/xserver-xwayland-$pkgver"

# Required because 'apk' will install 'xwayland' before removing
# 'xorg-server-xwayland' which causes it to complain the files
# are being replaced and abort operation.
# TODO(Leo): Remove before 3.14 release
replaces="xorg-server-xwayland"

build() {
	abuild-meson \
		-Dipv6=true \
		-Dxvfb=false \
		-Dxdmcp=false \
		-Dxcsecurity=true \
		-Ddri3=true \
		-Dxwayland_eglstream=false \
		-Dglamor=true \
		-Dxkb_dir=/usr/share/X11/xkb \
		-Dxkb_output_dir=/var/lib/xkb \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	# Part of xorg-server-doc
	rm -f "$pkgdir"/usr/share/man/man1/Xserver.1

	# Part of xorg-server-common
	rm -f "$pkgdir"/usr/lib/xorg/protocol.txt
}

sha512sums="9306f60dda9c08a78e6fcb162646e0d0d078e0b14aaab2385cec9f59400eb7dd299b9258b4ea1baccef3990eaf57ddf38999e9151accaf1e8dfda6bf2a3c312d  xserver-xwayland-21.1.0.tar.gz"