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

# source: BLFS 11.3
TARBALL=libinput-$PKGVER.tar.gz
MD5SUM=d164313f9a92162df7af3505b6915c76
SRC_URL=https://gitlab.freedesktop.org/libinput/libinput/-/archive/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='libwacom libgudev libevdev mtdev'
SLACKDESC="libinput: libinput $PKGVER (a library to handle input devices)  
libinput:  
libinput: libinput is a library that handles input devices for display servers and other 
libinput: applications that need to directly deal with input devices.
libinput: It provides device detection, device handling, input device event processing
libinput: and abstraction so minimize the amount of custom input code the user of
libinput: libinput need to provide the common set of functionality that users expect.
libinput: Devices include mice, keyboards, touchpads, clickpads, and Wacom.
libinput: 
libinput: TO USE WITH XORG INSTALL xf86-input-libinput.
libinput:
"

### default pkg_download
### default pkg_prepare 
### default pkg_package
### build
pkg_build() {
	MESONFLAGS="$MESONGFLAGS         \
            -Ddebug-gui=false        \
            -Dtests=false            \
            -Dlibwacom=true          \
            -Dudev-dir=/$LIBDIR/udev \
            -Ddocumentation=false    \
	"
	# -Ddebug-gui=true requires gtk3
	# -Ddocumentation=true requires doxygen and graphviz
	pkg_build_meson &&
	
	#set -Ddocumentation=true if you need docs
	#install -v -dm755 /usr/share/doc/libinput-$PKGVER &&
	#cp -rv html/*     /usr/share/doc/libinput-$PKGVER &&
	
	pkg_build_slackdesc
}
