diff options
author | B. Watson <yalhcru@gmail.com> | 2011-02-06 03:33:22 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-02-06 03:33:22 -0600 |
commit | 153bf54b980dedb19aea185edb49189ead57da3d (patch) | |
tree | 94cc8ceeeee02406150ae343e24cd6bbf132931c /multimedia/nted/nted.SlackBuild | |
parent | 3220b9f6600252a6a0fcf56f83d86a88d9dfce46 (diff) | |
download | slackbuilds-153bf54b980dedb19aea185edb49189ead57da3d.tar.gz |
multimedia/nted: Updated for version 1.10.7.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'multimedia/nted/nted.SlackBuild')
-rw-r--r-- | multimedia/nted/nted.SlackBuild | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/multimedia/nted/nted.SlackBuild b/multimedia/nted/nted.SlackBuild index 0bb98c522b..0a23de789b 100644 --- a/multimedia/nted/nted.SlackBuild +++ b/multimedia/nted/nted.SlackBuild @@ -26,11 +26,18 @@ # Modified by the SlackBuilds.org project PRGNAM=nted -VERSION=${VERSION:-1.8.7} -ARCH=${ARCH:-i486} +VERSION=${VERSION:-1.10.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -85,10 +92,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done + +# Overwrite shipped .desktop file with fixed one that validates +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |