#!/bin/bash #Name of the Syn-3 package that we are going to create NAME=`basename $0|sed 's/.SlackBuild//'` #Version of the sourcefiles VER=1.0 #Architecture that the created binaries run on. #Use noarch for scripts. ARCH=noarch #from this point on, exit on errors: set -e mkdir -p /tmp/pkg || exit 1 cp -r root/* /tmp/pkg || exit 1 find /tmp/pkg -name .svn -exec rm -r "{}" \; 2>/dev/null || true chmod +x /tmp/pkg/etc/postinst.d/* || exit 1 chmod +x /tmp/pkg/service/*/run || exit 1 #make main package syn3_makepkg /tmp/pkg $NAME $VER $ARCH || exit 1