#!/bin/sh

. config/options

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

mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers
cp $PKG_BUILD/src/.libs/*_drv.so $INSTALL/$XORG_PATH_MODULES/drivers

mkdir -p $INSTALL/usr/lib
cp $PKG_BUILD/libxvmc/.libs/*.so* $INSTALL/usr/lib

mkdir -p $INSTALL/usr/share/hwdata/videoaliases
cp $PKG_DIR/config/openchrome.xinf $INSTALL/usr/share/hwdata/videoaliases