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

# 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=
SLACKDESC="libwayland: libwayland $PKGVER (Wayland client library)
libwayland: 
libwayland: Wayland is the protocol for the next-generation display server, 
libwayland: replacing the venerable X11. This library is required by both Wayland 
libwayland: server and clients.
libwayland: 
libwayland: https://wayland.freedesktop.org/
libwayland: 
libwayland: 
libwayland: 
libwayland: 
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	MESONFLAGS="$MESONFLAGS --prefix=/usr \
		--buildtype=release  \
		-Ddocumentation=false" # this depends on graphviz, so we build it separately later.

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


