#!/bin/sh # Copyright 2008 Carlos Corbacho /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG find . -name perllocal.pod | xargs rm -f ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n ../$PKGNAM-$VERSION-$PKGARCH-$BUILD$TAG.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$PKGNAM-$VERSION rm -rf $PKG fi