diff --git a/office/docx2txt/docx2txt.SlackBuild b/office/docx2txt/docx2txt.SlackBuild index fff9e7d708..7f2ffa791b 100644 --- a/office/docx2txt/docx2txt.SlackBuild +++ b/office/docx2txt/docx2txt.SlackBuild @@ -2,38 +2,27 @@ # Slackware build script for docx2txt -# Copyright 2014 Phillip Warner , USA -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Originally written by Phillip Warner . +# Modified and now maintained by B. Watson . + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# 20240812 bkw: BUILD=2 +# - take over maintenance. +# - remove a couple useless files from doc dir. + +# This software hasn't been maintained upstream in 10 years, but it +# seems to still be useful. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=docx2txt VERSION=${VERSION:-1.4} ARCH=noarch -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -54,18 +43,15 @@ 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 +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/install $PKGDOC -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/ +install -D -m 0755 docx2txt.pl $PKG/usr/bin/docx2txt +install -D -m 0644 docx2txt.config $PKG/etc/docx2txt.config.new +install -D -m 0644 $CWD/docx2txt.1.gz $PKG/usr/man/man1/docx2txt.1.gz +install -m 0644 AUTHORS COPYING ChangeLog README ToDo $PKGDOC -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh diff --git a/office/docx2txt/docx2txt.info b/office/docx2txt/docx2txt.info index a7fa84c2e0..74397a3924 100644 --- a/office/docx2txt/docx2txt.info +++ b/office/docx2txt/docx2txt.info @@ -6,5 +6,5 @@ MD5SUM="780f468c16d547b02723b98aadc52c63" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Phillip Warner" -EMAIL="pc_warner@yahoo.com" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk"