#!/bin/sh

. config/options $1

mkdir -p $INSTALL/usr/sbin
  cp $PKG_BUILD/daemon/transmission-daemon $INSTALL/usr/sbin

mkdir -p $INSTALL/usr/share/transmission/web
  cp -R $PKG_BUILD/web/* $INSTALL/usr/share/transmission/web
  find $INSTALL/usr/share/transmission/web -name "Makefile*" -exec rm -rf {} ";"
  rm -rf $INSTALL/usr/share/transmission/web/LICENSE

mkdir -p $INSTALL/usr/config
  cp $PKG_DIR/config/transmission.conf $INSTALL/usr/config
