diff options
Diffstat (limited to 'system/emelfm2')
-rw-r--r-- | system/emelfm2/doinst.sh | 7 | ||||
-rw-r--r-- | system/emelfm2/emelfm2.SlackBuild | 31 | ||||
-rw-r--r-- | system/emelfm2/emelfm2.info | 8 |
3 files changed, 30 insertions, 16 deletions
diff --git a/system/emelfm2/doinst.sh b/system/emelfm2/doinst.sh index 22d4849bce4a9..1be07cc6d67b4 100644 --- a/system/emelfm2/doinst.sh +++ b/system/emelfm2/doinst.sh @@ -1,5 +1,8 @@ -if [ -x usr/bin/update-desktop-database ]; then - usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications fi +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi 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 diff --git a/system/emelfm2/emelfm2.info b/system/emelfm2/emelfm2.info index 91ece0a956dac..648c6b7071ad6 100644 --- a/system/emelfm2/emelfm2.info +++ b/system/emelfm2/emelfm2.info @@ -1,8 +1,8 @@ PRGNAM="emelfm2" -VERSION="0.3.6" +VERSION="0.5.0" HOMEPAGE="http://www.emelfm2.net" -DOWNLOAD="http://emelfm2.net/rel/emelfm2-0.3.6.tar.gz" -MD5SUM="cc00361a117e48823bf5bd7da5d729e0" +DOWNLOAD="http://emelfm2.net/rel/emelfm2-0.5.0.tar.bz2" +MD5SUM="26ce3efa9739c601bee082f642c66ac1" MAINTAINER="Chess Griffin" EMAIL="chess@chessgriffin.com" -APPROVED="rworkman" +APPROVED="dsomero" |