#!/bin/bash NAME=slackpackage VER=0.1 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null mkdir $PKGTMP/etc cp slack-package.conf $PKGTMP/etc || exit 1 cd "$PKGTMP" || exit 1 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch