From 776d134d473e6619fdddf7dcae0879147ea07573 Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Wed, 16 Aug 2017 21:43:27 +0100 Subject: libraries/libe-book: Switch download to https, script changes. Signed-off-by: David Spencer --- libraries/libe-book/libe-book.SlackBuild | 21 ++++++++++++--------- libraries/libe-book/libe-book.info | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'libraries') diff --git a/libraries/libe-book/libe-book.SlackBuild b/libraries/libe-book/libe-book.SlackBuild index 359e9bd04a..b20e9ecb22 100644 --- a/libraries/libe-book/libe-book.SlackBuild +++ b/libraries/libe-book/libe-book.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libe-book -# Copyright 2015 Hunter Sezen California, USA +# Copyright 2015, 2017 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=libe-book VERSION=${VERSION:-0.1.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -69,21 +69,24 @@ 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" +case "${DOC:-no}" in + yes) doc='--with-docs' ;; + *) doc='--without-docs' ;; +esac + +if pkg-config --exists cppunit; then + cppunit='--enable-tests' else - doc="" + cppunit='--disable-tests' fi -if pkg-config --exists cppunit; then cppunit=""; else cppunit="--disable-tests"; fi - CFLAGS="$SLKCFLAGS -DBOOST_SYSTEM_NO_DEPRECATED" \ CXXFLAGS="$SLKCFLAGS -DBOOST_SYSTEM_NO_DEPRECATED" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + --disable-werror \ --build=$ARCH-slackware-linux \ $doc \ $cppunit diff --git a/libraries/libe-book/libe-book.info b/libraries/libe-book/libe-book.info index 38a7335b27..8af8ac950d 100644 --- a/libraries/libe-book/libe-book.info +++ b/libraries/libe-book/libe-book.info @@ -1,7 +1,7 @@ PRGNAM="libe-book" VERSION="0.1.2" HOMEPAGE="https://sourceforge.net/projects/libebook/" -DOWNLOAD="http://sourceforge.net/projects/libebook/files/libe-book-0.1.2/libe-book-0.1.2.tar.xz" +DOWNLOAD="https://sourceforge.net/projects/libebook/files/libe-book-0.1.2/libe-book-0.1.2.tar.xz" MD5SUM="19d84f4a97aab32d350d1f47ea3da0b3" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -- cgit v1.2.3