summaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorsercari <sercari@esdebian.org>2010-05-13 01:00:33 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 01:00:33 +0200
commit03e0b9e3adbd2db085fd85f15645fb1a517cba47 (patch)
treebe4a4de10c429e06f9315241c224b712d7b6e717 /office
parentdb6946e58852eee98e42d2268770a6bb492e6d05 (diff)
downloadslackbuilds-03e0b9e3adbd2db085fd85f15645fb1a517cba47.tar.gz
office/odt2txt: Added to 13.0 repository
Diffstat (limited to 'office')
-rw-r--r--office/odt2txt/README9
-rw-r--r--office/odt2txt/odt2txt.SlackBuild62
-rw-r--r--office/odt2txt/odt2txt.info10
-rw-r--r--office/odt2txt/slack-desc19
4 files changed, 100 insertions, 0 deletions
diff --git a/office/odt2txt/README b/office/odt2txt/README
new file mode 100644
index 0000000000..2b1f26ac6a
--- /dev/null
+++ b/office/odt2txt/README
@@ -0,0 +1,9 @@
+A simple converter from OpenDocument Text to plain text odt2txt is
+a command-line tool which extracts the text out of OpenDocument Texts
+produced by OpenOffice.org, StarOffice, KOffice and others.
+
+odt2txt can also extract text from some file formats similar to OpenDocument
+Text, such as OpenOffice.org XML (*.sxw), which was used by OpenOffice.org
+version 1.x and older StarOffice versions. To a lesser extend, odt2txt
+may be useful to extract content from OpenDocument spreadsheets (*.ods)
+and OpenDocument presentations (*.odp).
diff --git a/office/odt2txt/odt2txt.SlackBuild b/office/odt2txt/odt2txt.SlackBuild
new file mode 100644
index 0000000000..31b13eab48
--- /dev/null
+++ b/office/odt2txt/odt2txt.SlackBuild
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# Slackware build script for odt2txt
+# Written by sercari <sercari@esdebian.org>
+
+PRGNAM=odt2txt
+VERSION=0.4
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+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
+
+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
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+make
+
+make install DESTDIR=$PKG/usr/
+
+mv $PKG/usr/share/man $PKG/usr/man
+rm -rf $PKG/usr/share
+( 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
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ GPL-2 INSTALL \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/office/odt2txt/odt2txt.info b/office/odt2txt/odt2txt.info
new file mode 100644
index 0000000000..06c0220183
--- /dev/null
+++ b/office/odt2txt/odt2txt.info
@@ -0,0 +1,10 @@
+PRGNAM="odt2txt"
+VERSION="0.4"
+HOMEPAGE="http://stosberg.net/odt2txt/"
+DOWNLOAD="http://stosberg.net/odt2txt/odt2txt-0.4.tar.gz"
+MD5SUM="6fe3bd261ce2dde2810244bbe969bbc5"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="sercari"
+EMAIL="sercari@esdebian.org"
+APPROVED="dsomero"
diff --git a/office/odt2txt/slack-desc b/office/odt2txt/slack-desc
new file mode 100644
index 0000000000..dc6b6ffd0c
--- /dev/null
+++ b/office/odt2txt/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|' on
+# the right side marks the last column you can put a character in. You must make
+# exactly 11 lines for the formatting to be correct. It's also customary to
+# leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+odt2txt: odt2txt (simple converter from OpenDocument Text to plain text)
+odt2txt:
+odt2txt: odt2txt is a command-line tool which extracts the text
+odt2txt: out of OpenDocument Texts produced by OpenOffice.org,
+odt2txt: StarOffice, KOffice and others.
+odt2txt: odt2txt can also extract text from some file formats
+odt2txt: similar to OpenDocument Text, such as OpenOffice.org XML (*.sxw),
+odt2txt: which was used by OpenOffice.org version 1.x and older StarOffice
+odt2txt: versions. To a lesser extend, odt2txt may be useful to extract
+odt2txt: content from OpenDocument spreadsheets (*.ods) and OpenDocument
+odt2txt: presentations (*.odp).