summaryrefslogtreecommitdiff
path: root/libraries/libwps/libwps.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-08-16 22:59:57 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-08-19 07:10:45 +0700
commit5acf349929860f8001906927a28aa31bcfba68fe (patch)
tree6c26cd94d84d6c5ff48a1f6098dd17f49c27989b /libraries/libwps/libwps.SlackBuild
parentd6e5cefb1df547a227147488d66d83864d92fdef (diff)
downloadslackbuilds-5acf349929860f8001906927a28aa31bcfba68fe.tar.gz
libraries/libwps: Updated for version 0.4.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libwps/libwps.SlackBuild')
-rw-r--r--libraries/libwps/libwps.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/libraries/libwps/libwps.SlackBuild b/libraries/libwps/libwps.SlackBuild
index 6374bc6c79..f517178804 100644
--- a/libraries/libwps/libwps.SlackBuild
+++ b/libraries/libwps/libwps.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libwps
-VERSION=${VERSION:-0.4.5}
+VERSION=${VERSION:-0.4.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -54,7 +54,7 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -69,12 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-DOC=${DOC:-no}
-if [ ! "$DOC" = "yes" ]; then
- doc="--without-docs"
-else
- doc=""
-fi
+case "${DOC:-no}" in
+ yes) doc='--with-docs' ;;
+ *) doc='--without-docs' ;;
+esac
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -82,6 +80,7 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-werror \
--build=$ARCH-slackware-linux \
$doc