# Get physfs-1.0.1.tar.gz from http://icculus.org/physfs/
tar -xzf physfs-1.0.1.tar.gz
cd physfs-1.0.1
export CFLAGS="-march=i486 -mcpu=i686 -O2" && export CXXFLAGS="${CFLAGS}"
./configure --prefix=/usr
make
checkinstall
mkdir pkgdir
tar -C pkgdir -xzf physfs-1.0.1-*.tgz
# Replace pkgdir/install/slack-desc
strip pkgdir/usr/lib/*
doxygen
rm -rf pkgdir/usr/doc/physfs-1.0.1/docs
cp -r docs/{html,README} pkgdir/usr/doc/physfs-1.0.1
# Add pkgdir/usr/doc/physfs-1.0.1/SlackBuild
cd pkgdir
makepkg physfs-1.0.1-i486-1szl.tgz
