#!/bin/sh

. config/options

PKG_DIR=`find $PACKAGES -type d -name $1`

mkdir -p $INSTALL/$XORG_PATH_MODULES/input
  cp -P $PKG_BUILD/src/.libs/wacom_drv.so $INSTALL/$XORG_PATH_MODULES/input

mkdir -p $INSTALL/usr/share/X11/xorg.conf.d
  cp -P $PKG_DIR/config/*.conf $INSTALL/usr/share/X11/xorg.conf.d

mkdir -p $INSTALL/lib/udev/rules.d
  cp -P $PKG_DIR/config/*.rules $INSTALL/lib/udev/rules.d

mkdir -p $INSTALL/usr/bin
  cp -P $PKG_BUILD/tools/xsetwacom $INSTALL/usr/bin
