From 4cdcb6757a083f51073cf163a9601c274fcfafa7 Mon Sep 17 00:00:00 2001 From: David Woodfall Date: Tue, 15 Jun 2010 04:41:04 -0500 Subject: system/ranger: Updated for version 1.1.0. Signed-off-by: Robby Workman --- system/ranger/ranger.SlackBuild | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'system/ranger/ranger.SlackBuild') diff --git a/system/ranger/ranger.SlackBuild b/system/ranger/ranger.SlackBuild index 7c195bf6c5a7c..758d66402bfbf 100644 --- a/system/ranger/ranger.SlackBuild +++ b/system/ranger/ranger.SlackBuild @@ -23,10 +23,11 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ranger -VERSION=${VERSION:-git20100426} +VERSION=${VERSION:-1.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -SRCDIR=ranger-master + +SRCNAM=$PRGNAM-$VERSION-e74222ee # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -44,10 +45,13 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -60,8 +64,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $SRCDIR +mkdir -p $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +tar xvf $CWD/$SRCNAM.tar.gz chown -R root:root . find . \ @@ -70,9 +75,10 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -patch -p1 < $CWD/pkg-support.diff +make install PREFIX=/usr DESTDIR=$PKG MANPREFIX="/man" -make install PREFIX=/usr DESTDIR=$PKG +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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ -- cgit v1.2.3