From c001394930c69c2011603376ef66bc80112cae84 Mon Sep 17 00:00:00 2001 From: slakmagik Date: Wed, 8 Dec 2010 22:35:38 -0600 Subject: graphics/mtpaint: Miscellaneous cleanups (remove bashisms) Signed-off-by: Robby Workman --- graphics/mtpaint/mtpaint.SlackBuild | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'graphics/mtpaint/mtpaint.SlackBuild') diff --git a/graphics/mtpaint/mtpaint.SlackBuild b/graphics/mtpaint/mtpaint.SlackBuild index b851af1551..d1b6e6422a 100644 --- a/graphics/mtpaint/mtpaint.SlackBuild +++ b/graphics/mtpaint/mtpaint.SlackBuild @@ -6,15 +6,13 @@ PRGNAM=mtpaint VERSION=${VERSION:-3.31} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -38,13 +36,13 @@ else LIBDIRSUFFIX="" fi -if [[ $GTK1 == yes ]]; then +if [ "$GTK1" = yes ]; then GTK1=gtk1 fi -if [[ $TKWIDGETS == yes ]]; then +if [ "$TKWIDGETS" = yes ]; then TKWIDGETS="gtkfilesel gtkcolsel" fi -if [[ $INTL == yes ]]; then +if [ "$INTL" = yes ]; then INTL=intl fi @@ -85,7 +83,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r # go ahead and make this in case the handbook is skipped mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -if [[ $HANDBOOK == yes ]]; then +if [ $HANDBOOK = yes ]; then unzip $CWD/${PRGNAM}_handbook-$VERSION.zip cd ${PRGNAM}_handbook-$VERSION chown -R root:root . -- cgit v1.2.3-65-gdbad