summaryrefslogtreecommitdiffstats
path: root/system/unrtf
diff options
context:
space:
mode:
author titopoquito2010-05-12 17:46:12 +0200
committer David Somero2010-05-12 17:46:12 +0200
commit48c06054cf6af0291e40c9a69a32e2ecdd63fb74 (patch)
tree08495d286879e855d6a5b49dd7ab45a1efd9c8cc /system/unrtf
parente0dbc1b24aa3d09cb34cebbb0e23dcaab5f40e20 (diff)
downloadslackbuilds-48c06054cf6af0291e40c9a69a32e2ecdd63fb74.tar.gz
system/unrtf: Updated for version 0.21.0
Diffstat (limited to 'system/unrtf')
-rw-r--r--system/unrtf/README4
-rw-r--r--system/unrtf/unrtf.SlackBuild27
-rw-r--r--system/unrtf/unrtf.info10
3 files changed, 24 insertions, 17 deletions
diff --git a/system/unrtf/README b/system/unrtf/README
index d032832a30..b87f459ff8 100644
--- a/system/unrtf/README
+++ b/system/unrtf/README
@@ -4,7 +4,3 @@ and other formats. Converting to HTML, it supports a number of
features of Rich Text Format.
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.
diff --git a/system/unrtf/unrtf.SlackBuild b/system/unrtf/unrtf.SlackBuild
index 23850a096e..cb8b561a36 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
diff --git a/system/unrtf/unrtf.info b/system/unrtf/unrtf.info
index d50e36045e..f3ab2dfa16 100644
--- a/system/unrtf/unrtf.info
+++ b/system/unrtf/unrtf.info
@@ -1,8 +1,8 @@
PRGNAM="unrtf"
-VERSION="0.20.2"
+VERSION="0.21.0"
HOMEPAGE="http://www.gnu.org/software/unrtf/unrtf.html"
-DOWNLOAD="http://www.gnu.org/software/unrtf/unrtf_0.20.2.tar.gz"
-MD5SUM="6f2cfe9c94ab61f698c08ca8c07cac67"
+DOWNLOAD="http://www.gnu.org/software/unrtf/unrtf-0.21.0.tar.gz"
+MD5SUM="8d1f8617d6813308c310f111145c7cb9"
MAINTAINER="titopoquito"
-EMAIL="titopoquito@cooltoad.com"
-APPROVED="alien"
+EMAIL="titopoquito@gmail.com"
+APPROVED="dsomero"