diff options
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} |