summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-23 00:52:11 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-02-23 00:52:11 +0700
commit1989f05add46326e5cac453d9999f7b055ef24b7 (patch)
treec7509e827d6baaf1e108fc42ebb58d65a1e066ef
parentf0a71fbca3338c05686c587b1843f52f3a360a43 (diff)
downloadslackbuilds-1989f05add46326e5cac453d9999f7b055ef24b7.tar.gz
office/odt2txt: Update DOWNLOAD and script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--office/odt2txt/odt2txt.SlackBuild12
-rw-r--r--office/odt2txt/odt2txt.info4
2 files changed, 7 insertions, 9 deletions
diff --git a/office/odt2txt/odt2txt.SlackBuild b/office/odt2txt/odt2txt.SlackBuild
index 1d25396ba0..e16fc15bda 100644
--- a/office/odt2txt/odt2txt.SlackBuild
+++ b/office/odt2txt/odt2txt.SlackBuild
@@ -4,7 +4,7 @@
# Written by sercari <sercari@esdebian.org>
PRGNAM=odt2txt
-VERSION=0.4
+VERSION=${VERSION:-0.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,15 +40,15 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+rm -rf $PRGNAM-v$VERSION
+tar xvf $CWD/v$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -64,9 +64,7 @@ rm -rf $PKG/usr/share
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- GPL-2 INSTALL \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a GPL-2 INSTALL $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/office/odt2txt/odt2txt.info b/office/odt2txt/odt2txt.info
index 1f7f5bb60b..1c5319d9dd 100644
--- a/office/odt2txt/odt2txt.info
+++ b/office/odt2txt/odt2txt.info
@@ -1,8 +1,8 @@
PRGNAM="odt2txt"
VERSION="0.4"
HOMEPAGE="http://stosberg.net/odt2txt/"
-DOWNLOAD="http://stosberg.net/odt2txt/odt2txt-0.4.tar.gz"
-MD5SUM="6fe3bd261ce2dde2810244bbe969bbc5"
+DOWNLOAD="https://github.com/dstosberg/odt2txt/archive/v0.4.tar.gz"
+MD5SUM="083872163713a5f9ab0b48c7c6c5557a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""