#!/bin/sh ext=sxiv dir=`pwd` mkdir -p $ext mkdir -p $ext-doc/usr/local/share export CFLAGS="$CFLAGS -march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe" export LDFLAGS="$LDFLAGS -Wl,-O1" cd /tmp/$ext make DESTDIR=$dir/$ext install cd $dir strip $ext/usr/local/bin/$ext mv $ext/usr/local/share/man $ext-doc/usr/local/share