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

# Post BLFS 11: 2021-12-22 updated to BLFS 11.3 to r12.1-1104 
TARBALL=wayland-$PKGVER.tar.xz
MD5SUM=23ad991e776ec8cf7e58b34cbd2efa75
SRC_URL=https://gitlab.freedesktop.org/wayland/wayland/-/releases/$PKGVER/downloads/$TARBALL
BUNDLE=

SLACKREQ= # graphviz-qt5 build-time only
SLACKDESC="libwayland-doc: libwayland-doc $PKGVER (Wayland client library)
libwayland-doc: 
libwayland-doc: Wayland is the protocol for the next-generation display server, 
libwayland-doc: replacing the venerable X11. This library is required by both Wayland 
libwayland-doc: server and clients.
libwayland-doc: 
libwayland-doc: https://wayland.freedesktop.org/
libwayland-doc: 
libwayland-doc: This package contains the HTML documentation and manpages of
libwayland-doc: the Wayland library functions.
libwayland-doc: 
"

### default pkg_download
### default pkg_prepare

# remove everything except the docs
pkg_package() {
	rm -r usr/bin usr/include usr/$LIBDIR usr/share/aclocal usr/share/wayland
}

### build
pkg_build() {
	MESONFLAGS="$MESONFLAGS --prefix=/usr \
		--buildtype=release  \
		-Ddocumentation=true" # this depends on graphviz

	pkg_build_meson &&
	pkg_build_slackdesc &&
	rm -rf /var # remove the fontconfig stuff leftover from making the doc
}


