aboutsummaryrefslogtreecommitdiff
path: root/system/ranger/ranger.SlackBuild
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2010-06-15 04:41:04 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-15 04:41:04 -0500
commit4cdcb6757a083f51073cf163a9601c274fcfafa7 (patch)
tree846657dcc387b328ee6ac340e943ea8b56d08a10 /system/ranger/ranger.SlackBuild
parent6a49c5521f87df8e2df55d22fe5fa1283b1839ec (diff)
system/ranger: Updated for version 1.1.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/ranger/ranger.SlackBuild')
-rw-r--r--system/ranger/ranger.SlackBuild18
1 files changed, 12 insertions, 6 deletions
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 \