diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2014-03-24 09:31:21 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-03-24 13:02:14 +0700 |
commit | ab09016092f9b536dd1992fcc16aae9d08c3e3e9 (patch) | |
tree | e6dd39bd857aed6f4a5c8d87f383b1c7c3c60f85 /office/docx2txt/docx2txt.SlackBuild | |
parent | fe35329a9cdeb8c8eb03623afa9171da4e0617bb (diff) | |
download | slackbuilds-ab09016092f9b536dd1992fcc16aae9d08c3e3e9.tar.gz |
office/docx2txt: Added (docx to text converter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/docx2txt/docx2txt.SlackBuild')
-rw-r--r-- | office/docx2txt/docx2txt.SlackBuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/office/docx2txt/docx2txt.SlackBuild b/office/docx2txt/docx2txt.SlackBuild new file mode 100644 index 0000000000..ccc1351c2f --- /dev/null +++ b/office/docx2txt/docx2txt.SlackBuild @@ -0,0 +1,44 @@ +#!/bin/sh + +# Slackware build script for docx2txt +# Written by Phillip Warner <pc_warner@yahoo.com> + +PRGNAM=docx2txt +VERSION=${VERSION:-1.2} +ARCH=noarch +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tgz +cd $PRGNAM-$VERSION + +chown -R root:root . + +mkdir -p $PKG/usr/bin \ + $PKG/etc \ + $PKG/usr/man/man1 \ + $PKG/usr/doc/$PRGNAM-$VERSION \ + $PKG/install + +install -m 0755 docx2txt.pl $PKG/usr/bin/docx2txt +install -m 0644 docx2txt.config $PKG/etc/docx2txt.config.new +install -m 0644 $CWD/docx2txt.1.gz $PKG/usr/man/man1/docx2txt.1.gz +install -m 0644 AUTHORS COPYING ChangeLog README ToDo $PKG/usr/doc/$PRGNAM-$VERSION/ + +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |