diff options
author | titopoquito <titopoquito@gmail.com> | 2010-05-12 17:46:12 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:46:12 +0200 |
commit | 48c06054cf6af0291e40c9a69a32e2ecdd63fb74 (patch) | |
tree | 08495d286879e855d6a5b49dd7ab45a1efd9c8cc /system/unrtf/unrtf.SlackBuild | |
parent | e0dbc1b24aa3d09cb34cebbb0e23dcaab5f40e20 (diff) |
system/unrtf: Updated for version 0.21.0
Diffstat (limited to 'system/unrtf/unrtf.SlackBuild')
-rw-r--r-- | system/unrtf/unrtf.SlackBuild | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/system/unrtf/unrtf.SlackBuild b/system/unrtf/unrtf.SlackBuild index 23850a096ee6..cb8b561a368f 100644 --- a/system/unrtf/unrtf.SlackBuild +++ b/system/unrtf/unrtf.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # Slackware build script for unrtf -# Copyright 2007 by titopoquito (titopoquito@cooltoad.com) +# Copyright 2007-2009 by titopoquito (titopoquito@gmail.com) # Permission to use, copy, modify, and distribute this software for # any purpose with or without fee is hereby granted, provided that # the above copyright notice and this permission notice appear in all @@ -21,14 +21,13 @@ # --------------------------------------------------------------------------- # Modified by the SlackBuilds.org Project -# Exit on most errors -set -e PRGNAM=unrtf -VERSION=0.20.2 +VERSION=0.21.0 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -36,16 +35,24 @@ 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" fi +# Exit on most errors +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM"_"$VERSION.tar.gz -cd $PRGNAM"_"$VERSION +tar -xvf $CWD/$PRGNAM"-"$VERSION.tar.gz +cd $PRGNAM"-"$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -54,14 +61,18 @@ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ + --mandir=/usr/man \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man |