#!/bin/sh

. config/options

cd $BUILD/$1*

do_install usr/lib/libgstreamer-$GST_VERSION.so*

for i in elements indexers; do
  do_install usr/lib/gstreamer-$GST_VERSION/libgstcore$i.so
done

for i in base check controller dataprotocol net; do
  do_install usr/lib/libgst$i-$GST_VERSION.so*
done

if pkg_uses $1 devtools; then
  do_install usr/libexec/gstreamer-$GST_VERSION/gst-plugin-scanner

  for i in feedback inspect launch typefind xmlinspect xmllaunch; do
    do_install usr/bin/gst-$i-$GST_VERSION
  done
fi

exit 0
