slackbuilds_ponce/games/scribble/scribble.SlackBuild
dsomero 687c78d560 various: Fix SlackBuild formatting and comment nit picks.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
2013-11-22 02:34:22 -05:00

45 lines
992 B
Bash

#!/bin/sh
# Maintained by Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
PRGNAM=scribble
VERSION=1.11_1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
SRCVERS=$(printf $VERSION | tr _ -)
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
rm -rf $TMP/$PRGNAM $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar xf $CWD/${PRGNAM}_$SRCVERS.tar.gz
cd $PRGNAM
chown -R root.root *
find . -perm 777 -exec chmod 755 {} \;
make prefix=$PKG/usr mandir=$PKG/usr/man
gzip -9 $PKG/usr/man/man6/scribble.6
# Racket also has a 'scribble' binary in /usr/bin
# Scribble's scribble is in /usr/games but Racket's steal its place in $PATH
( cd $PKG/usr/games/ ; ln -s scribble scribble-scrabble )
( cd $PKG/usr/man/man6/ ; ln -s scribble.6.gz scribble-scrabble.6.gz )
chmod -R o-w $PKG
chown -R root:root $PKG
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}