summaryrefslogblamecommitdiff
path: root/user/xwayland/APKBUILD
blob: c68a6dd28836b5d45107e27944d26dfdefd9dff5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                


                                                                              







































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