diff options
Diffstat (limited to 'libraries/libpagemaker/libpagemaker.SlackBuild')
-rw-r--r-- | libraries/libpagemaker/libpagemaker.SlackBuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libraries/libpagemaker/libpagemaker.SlackBuild b/libraries/libpagemaker/libpagemaker.SlackBuild index 961b49be56..397b3eb199 100644 --- a/libraries/libpagemaker/libpagemaker.SlackBuild +++ b/libraries/libpagemaker/libpagemaker.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libpagemaker -# Copyright 2015-2017 Hunter Sezen California, USA +# Copyright 2015-2018 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libpagemaker -VERSION=${VERSION:-0.0.3} +VERSION=${VERSION:-0.0.4} 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:-0}" in + 0) doc='--without-docs' ;; + *) doc='--with-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 @@ -92,7 +91,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog HACKING NEWS NOTES README $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog HACKING NEWS NOTES README \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |