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

# source: kirk
TARBALL=libinput-$PKGVER.tar.xz
MD5SUM=8e0600a296584f8d65d4ca1a82cd4a02
SRC_URL=http://www.freedesktop.org/software/libinput/$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: TO USE WITH XORG INSTALL xf86-input-libinput.
libinput: 
libinput:
"

### default pkg_download
### default pkg_prepare 
### default pkg_package
### build
pkg_build() {
	#CONFFLAGS="$XORG_CONFIG --disable-static --disable-documentation --disable-debug-gui --disable-tests --with-udev-dir=/$LIBDIR/udev"
	#pkg_build_autoconf && 
	cd /tmp/libinput*
	mkdir build &&
	cd    build &&

	meson --prefix=$XORG_PREFIX --buildtype=release   \
      -Dudev-dir=/$LIBDIR/udev  \
      -Ddebug-gui=false       \
      -Dtests=false          \
      -Dlibwacom=false      \
      -Ddocumentation=false \
      ..                    &&
	ninja && ninja install &&

	#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
}
