#!/bin/sh -e VER=3.0.2 tar xof sylpheed-$VER.tar.bz2 cd sylpheed-$VER ## Build ./configure nice make -j5 make DESTDIR=/tmp/tmpsylph install ## Pack cd /tmp/tmpsylph find -type f -name "*.la" > /tmp/list find usr/local/include -type f >> /tmp/list mkdir /tmp/sylph-dev /tmp/sylph-locale tar cf - -T /tmp/list | tar -C /tmp/sylph-dev -xf - cat /tmp/list | xargs rm # Remove empty dirs ( set +e for i in 1 2 3 4 5 6 7 8 9; do find -type d -empty -exec rmdir '{}' \; 2>/dev/null done ) find usr/local/share/locale -type f > /tmp/list tar cf - -T /tmp/list | tar -C /tmp/sylph-locale -xf - cat /tmp/list | xargs rm # Remove empty dirs ( set +e for i in 1 2 3 4 5 6 7 8 9; do find -type d -empty -exec rmdir '{}' \; 2>/dev/null done ) # Finish the main extension here.