#!/bin/sh

. config/options $1

mkdir -p $INSTALL/bin
  cp $PKG_BUILD/mount/.libs/mount $INSTALL/bin
  cp $PKG_BUILD/mount/.libs/umount $INSTALL/bin

mkdir -p $INSTALL/sbin
  cp $PKG_BUILD/misc-utils/.libs/blkid $INSTALL/sbin
  cp $PKG_BUILD/mount/.libs/swapon $INSTALL/sbin
  ln -sf swapon $INSTALL/sbin/swapoff

mkdir -p $INSTALL/usr/lib
  cp -PR $PKG_BUILD/shlibs/blkid/src/.libs/libblkid.so* $INSTALL/usr/lib
  rm -rf $INSTALL/usr/lib/libblkid.so*T
  cp -PR $PKG_BUILD/shlibs/uuid/src/.libs/libuuid.so* $INSTALL/usr/lib
  rm -rf $INSTALL/usr/lib/libuuid.so*T
