graphics/evolus-pencil: Updated for version 1.3.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Binh Nguyen 2012-09-25 07:27:24 +07:00 committed by Robby Workman
parent 39a1f09e36
commit 191281792b
3 changed files with 13 additions and 56 deletions

View file

@ -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

View file

@ -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 tho Pencil

View file

@ -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"