#!/bin/bash

tar xvf modplugxmms-2.05.tar.gz
cd modplugxmms-2.05
patch -p1 < ../xmmod.patch
./configure --prefix=/usr/local
make
make install DESTDIR=/mnt/hda2/modplug-xmms/pkg

find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null



