diff options
Diffstat (limited to 'graphics/evolus-pencil/evolus-pencil.SlackBuild')
-rw-r--r-- | graphics/evolus-pencil/evolus-pencil.SlackBuild | 50 |
1 files changed, 10 insertions, 40 deletions
diff --git a/graphics/evolus-pencil/evolus-pencil.SlackBuild b/graphics/evolus-pencil/evolus-pencil.SlackBuild index 5f12876703..ea71d3613a 100644 --- a/graphics/evolus-pencil/evolus-pencil.SlackBuild +++ b/graphics/evolus-pencil/evolus-pencil.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for evolus-pencil -# Copyright 2010 Binh Nguyen <binhvng@gmail.com> +# Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,59 +23,29 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=evolus-pencil -VERSION=${VERSION:-1.2} -BUILD=${BUILD:-2} -APPBUILD=${APPBUILD:-0} +VERSION=${VERSION:-1.3} +BUILD=${BUILD:-1} +APPBUILD=${APPBUILD:-4} TAG=${TAG:-_SBo} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" -else - LIBDIRSUFFIX="" -fi - set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -tar xvf $CWD/Pencil-$VERSION-$APPBUILD-linux-gtk.tar.gz -C $PRGNAM-$VERSION -cd $PRGNAM-$VERSION +cd $PKG +rpm2cpio < $CWD/$PRGNAM-$VERSION-$APPBUILD.noarch.rpm | cpio -imdv chown -R root:root . chmod -R u+w,go+r-w,a-s . -mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION $PKG/usr/bin -cp -a * $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION - -# Remove unnecessary stuff -rm $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/pencil -find $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION -name "*~" -delete - -# Create start-up script for the app -cat <<EOT >$PKG/usr/bin/evoluspencil -#!/bin/sh -/usr/bin/xulrunner --app "/usr/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION/application.ini" -EOT -chmod 0755 $PKG/usr/bin/evoluspencil - -# Correct desktop file and put it in place -mkdir -p $PKG/usr/share/applications -sed "s/lib/lib${LIBDIRSUFFIX}/" $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +# Increase MaxVersion requirement to work with newer xulrunner. +# Don't worry, it works. +sed -i 's/MaxVersion=14/MaxVersion=15/' $PKG/usr/lib/$PRGNAM-$VERSION/application.ini mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |