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

# source: BLFS 11.3
TARBALL=xf86-input-libinput-$PKGVER.tar.xz
MD5SUM=c6e942a1d639ebe2621905cc84eb26b9
SRC_URL=https://www.x.org/pub/individual/driver/$TARBALL
BUNDLE=

SLACKREQ='libinput libgudev libwacom xorg-server'
SLACKDESC="xf86-input-libinput: xf86-input-libinput $PKGVER (A thin wrapper around libinput for Xorg. )  
xf86-input-libinput:  
xf86-input-libinput: This is an X driver based on libinput. It is a thin wrapper around libinput,
xf86-input-libinput: so while it does provide all features that libinput supports it does little
xf86-input-libinput: beyond.
xf86-input-libinput: 
xf86-input-libinput: 
xf86-input-libinput: 
xf86-input-libinput: 
xf86-input-libinput: 
xf86-input-libinput:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/xf86-input-libinput* &&
	patch -Np1 -i ../pkg/code-remap.patch
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$XORG_CONFIG --disable-static"
	pkg_build_autoconf && 
	mkdir -p /etc/X11/xorg.conf.d &&
	mv ../pkg/99-libinput.conf-example /etc/X11/xorg.conf.d &&
	pkg_build_slackdesc
}
 

