summaryrefslogtreecommitdiff
path: root/community/xwayland/APKBUILD
blob: 080a91febc18d8c1426ad364e4911b5b6d9f8b47 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=xwayland
pkgver=24.1.2
pkgrel=0
pkgdesc="Compact xserver to run under wayland for compatibility"
url="https://www.x.org/wiki"
arch="all"
license="MIT"
options="!check" # requires piglit, which has no stable releases
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
depends="xorg-server-common xkbcomp"
depends_dev="
	dbus-dev
	font-util-dev
	libdrm-dev
	libepoxy-dev
	libtirpc-dev
	libmd-dev
	libxcvt-dev
	libxfont2-dev
	libxkbfile-dev
	mesa-dev
	pixman-dev
	wayland-dev
	wayland-protocols
	xorgproto
	xtrans
	"
makedepends="
	$depends_dev
	meson
	"
source="https://xorg.freedesktop.org/archive/individual/xserver/xwayland-$pkgver.tar.xz
	use-libtirpc-nokrb.patch
	"

replaces="xorg-server-xwayland"

# secfixes:
#   23.2.5-r0:
#     - CVE-2024-31080
#     - CVE-2024-31081
#     - CVE-2024-31083
#   23.2.4-r0:
#     - CVE-2023-6816
#     - CVE-2024-0229
#     - CVE-2024-21885
#     - CVE-2024-21886
#     - CVE-2024-0408
#     - CVE-2024-0409
#   23.2.2-r0:
#     - CVE-2023-5367
#   22.1.8-r0:
#     - CVE-2023-0494
#   22.1.6-r0:
#     - CVE-2022-4283
#     - CVE-2022-46340
#     - CVE-2022-46341
#     - CVE-2022-46342
#     - CVE-2022-46343
#     - CVE-2022-46344
#   21.1.4-r0:
#     - CVE-2021-4008
#     - CVE-2021-4009
#     - CVE-2021-4010
#     - CVE-2021-4011
#   21.1.0-r4:
#     - CVE-2021-3472

build() {
	abuild-meson \
		-Db_lto=true \
		-Dipv6=true \
		-Dxvfb=false \
		-Dxdmcp=false \
		-Dxcsecurity=true \
		-Ddri3=true \
		-Dglamor=true \
		-Dsha1=libmd \
		-Dxkb_dir=/usr/share/X11/xkb \
		-Dxkb_output_dir=/var/lib/xkb \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -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="
2788f6954c999c29be54d5b1e6e2c81327de9fbefae140f7cd322c1ff21f76fdd17cb74cf8243035ea850bfa4573d2013ab895426790b7959cceb7120ba9531c  xwayland-24.1.2.tar.xz
42db6616a6566acedaa0c5dc125435183be0c0da5df4f542bf3857a1905ae4646d5eb311e4e00ec892c845a2dc2069f6e68f5f45ec6c499ea32b8e55d873a0f5  use-libtirpc-nokrb.patch
"