summaryrefslogtreecommitdiff
path: root/system/unrtf/unrtf.SlackBuild
diff options
context:
space:
mode:
authortitopoquito <titopoquito@gmail.com>2010-07-02 22:58:33 -0500
committerErik Hanson <erik@slackbuilds.org>2010-07-02 22:58:33 -0500
commitf346684801a95c92ea114069e39ef826aa1e04f8 (patch)
tree36e3e5293aa1d5a6c52d9fe52c25412d73aa37fb /system/unrtf/unrtf.SlackBuild
parentff7cbf8aa11724d598d756a134116dd94813c737 (diff)
downloadslackbuilds-f346684801a95c92ea114069e39ef826aa1e04f8.tar.gz
system/unrtf: Updated for version 0.21.1.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/unrtf/unrtf.SlackBuild')
-rw-r--r--system/unrtf/unrtf.SlackBuild38
1 files changed, 20 insertions, 18 deletions
diff --git a/system/unrtf/unrtf.SlackBuild b/system/unrtf/unrtf.SlackBuild
index 9d14616464..f64e2c0e41 100644
--- a/system/unrtf/unrtf.SlackBuild
+++ b/system/unrtf/unrtf.SlackBuild
@@ -1,6 +1,9 @@
#!/bin/sh
+
# Slackware build script for unrtf
-# Copyright 2007-2009 by titopoquito (titopoquito@gmail.com)
+
+# Written by 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
@@ -18,21 +21,16 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-# ---------------------------------------------------------------------------
-# Modified by the SlackBuilds.org Project
-
PRGNAM=unrtf
-VERSION=0.21.0
+VERSION=${VERSION:-0.21.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -56,17 +54,20 @@ else
LIBDIRSUFFIX=""
fi
-# Exit on most errors
-set -e
+set -e # Exit on most errors
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 .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -75,7 +76,8 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \
- --localstatedir=/var
+ --localstatedir=/var \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
@@ -83,13 +85,13 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+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 AUTHORS ChangeLog COPYING INSTALL NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS ChangeLog COPYING INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install