summaryrefslogtreecommitdiff
path: root/libraries/libetonyek/libetonyek.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-12-19 21:40:33 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-21 08:19:23 +0700
commitdec9ed6dfab03059ef9716c95b24e5d995b59a2d (patch)
treee0785253b0df626f7a15487e10f75d753fa0a6b5 /libraries/libetonyek/libetonyek.SlackBuild
parent50a8776beddf80255d19c07b7a9fbda1f13f9d95 (diff)
downloadslackbuilds-dec9ed6dfab03059ef9716c95b24e5d995b59a2d.tar.gz
libraries/libetonyek: Updated for version 0.1.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/libetonyek/libetonyek.SlackBuild')
-rw-r--r--libraries/libetonyek/libetonyek.SlackBuild27
1 files changed, 11 insertions, 16 deletions
diff --git a/libraries/libetonyek/libetonyek.SlackBuild b/libraries/libetonyek/libetonyek.SlackBuild
index d9fa680ea4..52949c8a35 100644
--- a/libraries/libetonyek/libetonyek.SlackBuild
+++ b/libraries/libetonyek/libetonyek.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libetonyek
-VERSION=${VERSION:-0.1.6}
+VERSION=${VERSION:-0.1.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,23 +69,17 @@ 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
-if ! pkg-config --exists cppunit; then
- cppunit="--disable-tests"
+if pkg-config --exists cppunit; then
+ cppunit='--enable-tests'
else
- cppunit=""
+ cppunit='--disable-tests'
fi
-# patch taken from Debian
-zcat $CWD/mdds-1.2.patch.gz | patch -p1
-autoreconf -fi
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -102,7 +96,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 FEATURES NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog FEATURES NEWS README TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install