summaryrefslogtreecommitdiff
path: root/user/xwayland/APKBUILD
blob: 1b2959de2246d08c684a313f176e838e74097c0b (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Simon Zeni <simon@bl4ckb0ne.ca>
# Maintainer: Ermine <mustela@erminea.space>
pkgname=xwayland
pkgver=24.1.6
pkgrel=0
pkgdesc="X11 server for Wayland"
url="https://www.X.Org/"
arch="all"
options="!check" # requires piglit, which has no stable releases
license="MIT AND X11"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc"
depends="xorg-server-protocol xkbcomp"
depends_dev="dbus-dev font-util-dev libdrm-dev libepoxy-dev libglvnd-dev
	libxcvt-dev libxfont2-dev libxkbfile-dev libxshmfence-dev mesa-dev
	openssl-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"

replaces="xorg-server-xwayland"

build() {
	meson setup \
		-Dprefix=/usr \
		-Dipv6=true \
		-Dxvfb=false \
		-Dxdmcp=false \
		-Dxcsecurity=true \
		-Ddri3=true \
		-Dglamor=true \
		-Dsecure-rpc=false \
		-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-protocol
	rm -f "$pkgdir"/usr/lib/xorg/protocol.txt
}

sha512sums="b6dcc87f5c4d880cb23216518171a704c2a501803ac2efd9d01760895d755a617cd82313c6516f27a888b0581c64d74e3f8db5c238e1ae0d13da6cc1a547c02f  xwayland-24.1.6.tar.xz"