aboutsummaryrefslogtreecommitdiff
path: root/system/unrtf
diff options
context:
space:
mode:
authortitopoquito <titopoquito@cooltoad.com>2010-05-11 19:46:44 +0200
committerEric Hameleers <alien@slackbuilds.org>2010-05-11 19:46:44 +0200
commit337709e77376bec94f384e510b21b4398be6f2df (patch)
tree894285fca0cda3059b49c244af9ccf300d25d5ff /system/unrtf
parent00e83466efcbdde7c62e40483e3f2691dfdcd13a (diff)
system/unrtf: Updated for version 0.20.2
Diffstat (limited to 'system/unrtf')
-rw-r--r--system/unrtf/unrtf.SlackBuild17
1 files changed, 6 insertions, 11 deletions
diff --git a/system/unrtf/unrtf.SlackBuild b/system/unrtf/unrtf.SlackBuild
index 46e51e1d7c06..23850a096ee6 100644
--- a/system/unrtf/unrtf.SlackBuild
+++ b/system/unrtf/unrtf.SlackBuild
@@ -24,15 +24,15 @@
# Exit on most errors
set -e
-PRGNAM=unrtf # replace with name of program
-VERSION=0.20.2 # replace with version of program
-ARCH=${ARCH:-i486} # this should not change
+PRGNAM=unrtf
+VERSION=0.20.2
+ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
-TAG=${TAG:-_SBo} # the "_SBo" is required
+TAG=${TAG:-_SBo}
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -56,7 +56,6 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc \
--localstatedir=/var
-# Compile the application and install it into the $PKG directory
make
make install DESTDIR=$PKG
@@ -65,21 +64,17 @@ make install DESTDIR=$PKG
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
-# Compress man pages
( 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
)
-# Copy program documentation into the package
mkdir -p $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
-# Copy the slack-desc
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
-# Make the package
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz