diff options
Diffstat (limited to 'system/mucommander/mucommander.SlackBuild')
-rw-r--r-- | system/mucommander/mucommander.SlackBuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/system/mucommander/mucommander.SlackBuild b/system/mucommander/mucommander.SlackBuild index bc61b6cc67..bfbf9394cf 100644 --- a/system/mucommander/mucommander.SlackBuild +++ b/system/mucommander/mucommander.SlackBuild @@ -1,18 +1,29 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for mucommander # Written by Dario Nicodemi dario.sbo@gmail.com +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mucommander -VERSION=${VERSION:-0.9.0} +VERSION=${VERSION:-1.3.0_1} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +SRC_VERSION=$(echo "$VERSION"|tr _ -) +SRC_MAIN_VERSION=$(echo "$VERSION"|cut -d "_" -f 1) -SRC_VERSION=$(echo "$VERSION"|tr . _) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -23,8 +34,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$SRC_VERSION.tar.gz -cd muCommander-$SRC_VERSION +mkdir $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$SRC_VERSION.tgz -C $PRGNAM-$VERSION +cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -33,7 +45,7 @@ find -L . \ -exec chmod 644 {} \; mkdir -p $PKG/opt/$PRGNAM -cp mucommander.sh mucommander.jar $PKG/opt/$PRGNAM +cp -a app bundle conf mucommander.sh mucommander-$SRC_MAIN_VERSION.jar $PKG/opt/$PRGNAM mkdir -p $PKG/usr/bin ( cd $PKG/usr/bin ; ln -s ../../opt/$PRGNAM/mucommander.sh mucommander) @@ -53,4 +65,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |