#!/bin/sh

. config/options $1

cd $PKG_BUILD

make wiiuse

mkdir -p $SYSROOT_PREFIX/usr/lib
  cp src/release*/*.so $SYSROOT_PREFIX/usr/lib

mkdir -p $SYSROOT_PREFIX/usr/include
  cp src/wiiuse.h $SYSROOT_PREFIX/usr/include
