summaryrefslogtreecommitdiff
path: root/user/xwayland/APKBUILD
blob: 012770875ac0b003cf8e75b45f2600b686b29704 (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
# 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.1
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 openssl-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"

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="
e44f47adab3830846360fd05fdc06d9016832133c662f2e4b0763b98de0c9b48dbfce7d757ffea5538b5fabb68170e5d1057acc1b9a086e396b147deaa750998  xwayland-24.1.1.tar.xz
42db6616a6566acedaa0c5dc125435183be0c0da5df4f542bf3857a1905ae4646d5eb311e4e00ec892c845a2dc2069f6e68f5f45ec6c499ea32b8e55d873a0f5  use-libtirpc-nokrb.patch
"
sha512sums="e44f47adab3830846360fd05fdc06d9016832133c662f2e4b0763b98de0c9b48dbfce7d757ffea5538b5fabb68170e5d1057acc1b9a086e396b147deaa750998  xwayland-24.1.1.tar.xz"