mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
ab09016092
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
44 lines
1 KiB
Bash
44 lines
1 KiB
Bash
#!/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}
|