#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi VERSION=1.1 ARCH=noarch BUILD=1_mb PKG=$TMP/package-sfont if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built fi echo "+===========+" echo "| sfont-$VERSION |" echo "+===========+" cd $TMP mkdir -p $PKG/usr/share/sounds/sf2 cp $CWD/sf2/* $PKG/usr/share/sounds/sf2 chmod 444 $PKG/usr/share/sounds/sf2/*.sf2 # Initialisation, works from Slackware 7.1 and up. # Don't create the symlinks, a Slackware setup script is installed. # mkdir -p $PKG/etc/rc.d/init.d cp $CWD/init.sfont $PKG/etc/rc.d/init.d/sfont chmod 744 $PKG/etc/rc.d/init.d/sfont mkdir -p $PKG/var/log/setup cp $CWD/setup.sfont $PKG/var/log/setup chown root.root $PKG/var/log/setup/setup.sfont chmod 0755 $PKG/var/log/setup/setup.sfont mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/sfont-$VERSION-$ARCH-$BUILD.txz tail -n 11 $CWD/slack-desc > $TMP/sfont-$VERSION-$ARCH-$BUILD.txt md5sum $TMP/sfont-$VERSION-$ARCH-$BUILD.txz > $TMP/sfont-$VERSION-$ARCH-$BUILD.txz.md5 # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $PKG fi