mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
office/docx2txt: Added (docx to text converter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
fe35329a9c
commit
ab09016092
6 changed files with 90 additions and 0 deletions
4
office/docx2txt/README
Normal file
4
office/docx2txt/README
Normal file
|
@ -0,0 +1,4 @@
|
|||
docx2txt - docx to text converter
|
||||
|
||||
docx2txt is a perl based command line utility to convert Microsoft Office OOXML
|
||||
(docx) documents to equivalent ASCII text documents.
|
BIN
office/docx2txt/docx2txt.1.gz
Normal file
BIN
office/docx2txt/docx2txt.1.gz
Normal file
Binary file not shown.
44
office/docx2txt/docx2txt.SlackBuild
Normal file
44
office/docx2txt/docx2txt.SlackBuild
Normal file
|
@ -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}
|
10
office/docx2txt/docx2txt.info
Normal file
10
office/docx2txt/docx2txt.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="docx2txt"
|
||||
VERSION="1.2"
|
||||
HOMEPAGE="http://docx2txt.sourceforge.net"
|
||||
DOWNLOAD="http://sourceforge.net/projects/docx2txt/files/docx2txt/v1.2/docx2txt-1.2.tgz"
|
||||
MD5SUM="7f1d0950b352b87398c8d2073a5b766e"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Phillip Warner"
|
||||
EMAIL="pc_warner@yahoo.com"
|
13
office/docx2txt/doinst.sh
Normal file
13
office/docx2txt/doinst.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
config etc/docx2txt.config.new
|
19
office/docx2txt/slack-desc
Normal file
19
office/docx2txt/slack-desc
Normal file
|
@ -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 ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
docx2txt: docx2txt (docx to text converter)
|
||||
docx2txt:
|
||||
docx2txt: docx2txt is a perl based command line utility to convert Microsoft
|
||||
docx2txt: Office OOXML (docx) documents to equivalent ASCII text documents.
|
||||
docx2txt:
|
||||
docx2txt: Homepage: http://docx2txt.sourceforge.net
|
||||
docx2txt:
|
||||
docx2txt:
|
||||
docx2txt:
|
||||
docx2txt:
|
||||
docx2txt:
|
Loading…
Reference in a new issue