#!/bin/sh

. config/options

$SCRIPTS/build toolchain

cd $PKG_BUILD

make CC=$TARGET_CC RANLIB=$TARGET_RANLIB AR=$TARGET_AR -f Makefile-libbz2_so
ln -snf libbz2.so.1.0 libbz2.so

mkdir -p $SYSROOT_PREFIX/usr/include
  cp bzlib.h $SYSROOT_PREFIX/usr/include

mkdir -p $SYSROOT_PREFIX/usr/lib
  cp -P libbz2.so* $SYSROOT_PREFIX/usr/lib

