aboutsummaryrefslogtreecommitdiff
path: root/system/emelfm2/emelfm2.SlackBuild
diff options
context:
space:
mode:
authorChess Griffin <chess@chessgriffin.com>2010-05-11 22:26:38 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-11 22:26:38 +0200
commitf18480faf7b65273a6ad87e69058f17e1cea3338 (patch)
treeae3b9a88e842d8d8f495bacb57d74057e2bc6001 /system/emelfm2/emelfm2.SlackBuild
parente41bcbd88bb99125dcae91b6160fd5575a708c3d (diff)
system/emelfm2: Updated for version 0.5.0
Diffstat (limited to 'system/emelfm2/emelfm2.SlackBuild')
-rw-r--r--system/emelfm2/emelfm2.SlackBuild31
1 files changed, 21 insertions, 10 deletions
diff --git a/system/emelfm2/emelfm2.SlackBuild b/system/emelfm2/emelfm2.SlackBuild
index 15d471102f4b1..8432c0304ce48 100644
--- a/system/emelfm2/emelfm2.SlackBuild
+++ b/system/emelfm2/emelfm2.SlackBuild
@@ -3,31 +3,37 @@
# Slackware build script for emelFM2
# Written by Chess Griffin <chess at chessgriffin dot com>
-PRGNAM=emelfm2
-VERSION=0.3.6
-ARCH=${ARCH:-i486}
+PRGNAM=emelfm2
+VERSION=0.5.0
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+cd $PRGNAM-0.5 || exit 1
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
make DOCS_VERSION=1 PREFIX=/usr || exit 1
make install DOCS_VERSION=1 USE_LATEST=1 USE_GAMIN=1 PREFIX=$PKG/usr || exit 1
@@ -38,8 +44,13 @@ make install DOCS_VERSION=1 USE_LATEST=1 USE_GAMIN=1 PREFIX=$PKG/usr || exit 1
)
mkdir -p $PKG/usr/man/man1
-bzcat $PKG/usr/share/man/man1/emelfm2.1.bz2 | gzip -9c > $PKG/usr/man/man1/emelfm2.1.gz
-rm -rf $PKG/usr/share/man
+mv $PKG/usr/share/man/man1/* $PKG/usr/man/man1/
+rm -rf $PKG/usr/share/man/
+
+( 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
+)
mkdir -p $PKG/usr/doc
mv $PKG/usr/share/doc $PKG/usr