#!/bin/sh # Slackware build script for artwiz-aleczapka # Written by Kyle Guinn # Modified by the SlackBuilds.org project. set -e PRGNAM=artwiz-aleczapka VERSION=1.3 ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # To make a package for fonts other than English, run the script as, for # example, `FONTLANG=de ./artwiz-aleczapka.SlackBuild`. You will need to # download the correct tarball and place it in this directory. FONTLANG=${FONTLANG:-en} rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$FONTLANG-$VERSION tar -xjvf $CWD/$PRGNAM-$FONTLANG-$VERSION.tar.bz2 cd $PRGNAM-$FONTLANG-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . gzip -9 *.pcf mkdir -p $PKG/usr/share/fonts/local cp -a *.pcf.gz $PKG/usr/share/fonts/local mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS README* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-${VERSION}_${FONTLANG}-$ARCH-$BUILD$TAG.tgz