#!/bin/sh

. config/options

$SCRIPTS/install glib
$SCRIPTS/install libxml2

mkdir -p $INSTALL/usr/lib
cp -PR `find $PKG_BUILD/{gst,libs} -name *.so*` $INSTALL/usr/lib
rm -rf `find $INSTALL/usr/lib -name libgst*.so*T`

mkdir -p $INSTALL/usr/lib/gstreamer-0.10
cp -PR `find $PKG_BUILD/plugins -name *.so` $INSTALL/usr/lib/gstreamer-0.10

if [ "$DEVTOOLS" = yes ]; then
  mkdir -p $INSTALL/usr/bin
  cp -PR $PKG_BUILD/tools/gst-launch $INSTALL/usr/bin
  cp -PR $PKG_BUILD/tools/.libs/* $INSTALL/usr/bin
fi
