#!/bin/sh

. config/options
$SCRIPTS/install libX11
$SCRIPTS/install glib
$SCRIPTS/install pango
$SCRIPTS/install libXft
$SCRIPTS/install libxml2

$SCRIPTS/install xwd

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

mkdir -p $INSTALL/usr/bin
cp -PR $PKG_BUILD/$1/.libs/$1 $INSTALL/usr/bin

mkdir -p $INSTALL/usr/lib
cp -PR $PKG_BUILD/parser/.libs/*.so* $INSTALL/usr/lib
cp -PR $PKG_BUILD/render/.libs/*.so* $INSTALL/usr/lib
rm -rf $INSTALL/usr/lib/*.so*T

mkdir -p $INSTALL/usr/share/themes
cp -RP $PKG_BUILD/themes/Clearlooks $INSTALL/usr/share/themes

mkdir -p $INSTALL/etc/xdg/openbox
cp -PR $PKG_DIR/config/rc.xml $INSTALL/etc/xdg/openbox

mkdir -p $INSTALL/etc/X11/xinit/xinitrc.d
cp -PR $PKG_DIR/scripts/xinitrc.d/* $INSTALL/etc/X11/xinit/xinitrc.d
