### this file is sourced not run
PKGVER=23.1.2
PKGBUILD=1
PKGARCH=noarch

TARBALL=xwayland-$PKGVER.tar.xz
MD5SUM=7531f16ecef79ace2b513bf3c640fd60
SRC_URL=https://www.x.org/pub/individual/xserver/$TARBALL
BUNDLE=

SLACKREQ='pixman libxcvt libepoxy libtirpc libgcrypt libnettle' # and mesa/opengl and wayland-protocols
SLACKDESC="xwayland: xwayland $PKGVER (X Server)
xwayland: 
xwayland: Xwayland is an Xorg server running on top of the wayland server. It 
xwayland: allows running X clients inside a wayland session.
xwayland: 
xwayland: 
xwayland: 
xwayland: 
xwayland: 
xwayland: 
xwayland: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	MESONFLAGS="$XORG_CONFIG --buildtype=release -Dxkb_output_dir=/var/lib/xkb"
	
	# don't install docx, xorg-server will provide the manpage
	cd /tmp/xwayland* &&
	sed -i '/install_man/,$d' meson.build &&
	
	pkg_build_meson &&
	pkg_build_slackdesc
}
