#!/bin/sh

. config/options $1

mkdir -p $INSTALL/usr/sbin
  [ "$TARGET_ARCH" = "i386" ] && cp -P $PKG_BUILD/irserver $INSTALL/usr/sbin/irserver
  [ "$TARGET_ARCH" = "x86_64" ] && cp -P $PKG_BUILD/irserver64 $INSTALL/usr/sbin/irserver
  [ "$TARGET_ARCH" = "arm" ] && cp -P $PKG_BUILD/irserver_arm $INSTALL/usr/sbin/irserver

mkdir -p $INSTALL/usr/share/irtrans/remotes
  cp $PKG_BUILD/remotes/irtrans.rem $INSTALL/usr/share/irtrans/remotes
  cp $PKG_BUILD/remotes/mediacenter.rem $INSTALL/usr/share/irtrans/remotes

mkdir -p $INSTALL/lib/udev/rules.d
  cp $PKG_DIR/config/*.rules $INSTALL/lib/udev/rules.d
