### this file is sourced not run
PKGVER=1.20.0
PKGBUILD=1
PKGARCH=x86_64

# Post BLFS 11: 2021-12-22
TARBALL=wayland-$PKGVER.tar.xz
MD5SUM=5095264157bf0565b921ceaf9d698d98
SRC_URL=https://wayland.freedesktop.org/releases/$TARBALL
BUNDLE=

SLACKREQ= # graphviz 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
}


