#!/bin/sh

. config/options

$SCRIPTS/install Python
$SCRIPTS/install gstreamer
$SCRIPTS/install gst-plugins-bad
$SCRIPTS/install gst-plugins-good
$SCRIPTS/install gst-rtsp
$SCRIPTS/install pygobject
$SCRIPTS/install pygtk
$SCRIPTS/install dbus-python
$SCRIPTS/install gst-python
$SCRIPTS/install libgee

$SCRIPTS/install hicolor-icon-theme
#$SCRIPTS/install gnome-icon-theme

PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*`

mkdir -p $INSTALL/usr/bin
cp -PR $PKG_BUILD/$1 $INSTALL/usr/bin
cp -PR $PKG_BUILD/client/gnome-dvb-control $INSTALL/usr/bin
 chmod +x $INSTALL/usr/bin/gnome-dvb-control
cp -PR $PKG_BUILD/client/gnome-dvb-setup $INSTALL/usr/bin
 chmod +x $INSTALL/usr/bin/gnome-dvb-setup

mkdir -p $INSTALL/usr/share/dbus-1/services
cp -PR $PKG_BUILD/data/*.service $INSTALL/usr/share/dbus-1/services

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb
cp $PKG_BUILD/client/gnomedvb/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui
cp $PKG_BUILD/client/gnomedvb/ui/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/controlcenter
cp $PKG_BUILD/client/gnomedvb/ui/controlcenter/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/controlcenter

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/preferences
cp $PKG_BUILD/client/gnomedvb/ui/preferences/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/preferences

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/timers
cp $PKG_BUILD/client/gnomedvb/ui/timers/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/timers

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/widgets
cp $PKG_BUILD/client/gnomedvb/ui/widgets/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/widgets

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/wizard
cp $PKG_BUILD/client/gnomedvb/ui/wizard/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/wizard

mkdir -p $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/wizard/pages
cp $PKG_BUILD/client/gnomedvb/ui/wizard/pages/*.pyc $PYTHON_LIB_DIR/site-packages/gnomedvb/ui/wizard/pages
