diff options
-rw-r--r-- | graphics/evolus-pencil/evolus-pencil.SlackBuild | 50 | ||||
-rw-r--r-- | graphics/evolus-pencil/evolus-pencil.desktop | 13 | ||||
-rw-r--r-- | graphics/evolus-pencil/evolus-pencil.info | 6 |
3 files changed, 13 insertions, 56 deletions
diff --git a/graphics/evolus-pencil/evolus-pencil.SlackBuild b/graphics/evolus-pencil/evolus-pencil.SlackBuild index 5f12876703bf8..ea71d3613a5e8 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 diff --git a/graphics/evolus-pencil/evolus-pencil.desktop b/graphics/evolus-pencil/evolus-pencil.desktop deleted file mode 100644 index 36d764a7c7f89..0000000000000 --- a/graphics/evolus-pencil/evolus-pencil.desktop +++ /dev/null @@ -1,13 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=Pencil Sketching Tool -Comment=Sketching and GUI prototyping tool -Exec=/usr/bin/evoluspencil -Terminal=false -Type=Application -StartupNotify=true -Icon=/usr/lib/evolus-pencil-1.2/chrome/content/Icons/icon.svg -Categories=Graphics;2DGraphics;Development -MimeType=application/ep -Name[en_US]=Pencil Sketching Tool -Name[vi_VN]=Công cụ phát thảo Pencil diff --git a/graphics/evolus-pencil/evolus-pencil.info b/graphics/evolus-pencil/evolus-pencil.info index 9e66e91cc47ea..5baaaf14f4534 100644 --- a/graphics/evolus-pencil/evolus-pencil.info +++ b/graphics/evolus-pencil/evolus-pencil.info @@ -1,8 +1,8 @@ PRGNAM="evolus-pencil" -VERSION="1.2" +VERSION="1.3" HOMEPAGE="http://pencil.evolus.vn/" -DOWNLOAD="http://evoluspencil.googlecode.com/files/Pencil-1.2-0-linux-gtk.tar.gz" -MD5SUM="e6aab47b8ce77d523eb2c412ec7fccc2" +DOWNLOAD="https://evoluspencil.googlecode.com/files/evolus-pencil-1.3-4.noarch.rpm" +MD5SUM="f0b746535c146b4fe8594c62ab870313" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="xulrunner" |