system/unrtf: Updated for version 0.21.0

This commit is contained in:
titopoquito 2010-05-12 17:46:12 +02:00 committed by David Somero
parent e0dbc1b24a
commit 48c06054cf
3 changed files with 24 additions and 17 deletions

View File

@ -4,7 +4,3 @@ and other formats. Converting to HTML, it supports a number of
features of Rich Text Format. features of Rich Text Format.
The homepage of unrtf is found at http://www.gnu.org/software/unrtf/unrtf.html. The homepage of unrtf is found at http://www.gnu.org/software/unrtf/unrtf.html.
unrtf does not seem to depend on other packages.
No incompatibilites with other programs are known so far.
No special configuration is needed after installing the package.

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Slackware build script for unrtf # 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 # Permission to use, copy, modify, and distribute this software for
# any purpose with or without fee is hereby granted, provided that # any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all # the above copyright notice and this permission notice appear in all
@ -21,14 +21,13 @@
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Modified by the SlackBuilds.org Project # Modified by the SlackBuilds.org Project
# Exit on most errors
set -e
PRGNAM=unrtf PRGNAM=unrtf
VERSION=0.20.2 VERSION=0.21.0
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -36,16 +35,24 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi fi
# Exit on most errors
set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM"_"$VERSION.tar.gz tar -xvf $CWD/$PRGNAM"-"$VERSION.tar.gz
cd $PRGNAM"_"$VERSION cd $PRGNAM"-"$VERSION
chown -R root:root . chown -R root:root .
chmod -R u+w,go+r-w,a-s . chmod -R u+w,go+r-w,a-s .
@ -54,14 +61,18 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--localstatedir=/var --localstatedir=/var
make make
make install DESTDIR=$PKG make install DESTDIR=$PKG
( cd $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 "executable" | grep ELF | cut -f 1 -d : | \
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null 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 ( cd $PKG/usr/man

View File

@ -1,8 +1,8 @@
PRGNAM="unrtf" PRGNAM="unrtf"
VERSION="0.20.2" VERSION="0.21.0"
HOMEPAGE="http://www.gnu.org/software/unrtf/unrtf.html" HOMEPAGE="http://www.gnu.org/software/unrtf/unrtf.html"
DOWNLOAD="http://www.gnu.org/software/unrtf/unrtf_0.20.2.tar.gz" DOWNLOAD="http://www.gnu.org/software/unrtf/unrtf-0.21.0.tar.gz"
MD5SUM="6f2cfe9c94ab61f698c08ca8c07cac67" MD5SUM="8d1f8617d6813308c310f111145c7cb9"
MAINTAINER="titopoquito" MAINTAINER="titopoquito"
EMAIL="titopoquito@cooltoad.com" EMAIL="titopoquito@gmail.com"
APPROVED="alien" APPROVED="dsomero"