summaryrefslogtreecommitdiff
path: root/libraries/libetonyek/libetonyek.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libetonyek/libetonyek.SlackBuild')
-rw-r--r--libraries/libetonyek/libetonyek.SlackBuild29
1 files changed, 20 insertions, 9 deletions
diff --git a/libraries/libetonyek/libetonyek.SlackBuild b/libraries/libetonyek/libetonyek.SlackBuild
index b11d4a2022..d9fa680ea4 100644
--- a/libraries/libetonyek/libetonyek.SlackBuild
+++ b/libraries/libetonyek/libetonyek.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libetonyek
-# 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
@@ -23,13 +23,13 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libetonyek
-VERSION=${VERSION:-0.1.3}
+VERSION=${VERSION:-0.1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -70,9 +70,21 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
DOC=${DOC:-no}
-if [ ! "${DOC:-yes}" == "yes" ]; then doc="--without-docs"; else doc=""; fi
+if [ ! "$DOC" = "yes" ]; then
+ doc="--without-docs"
+else
+ doc=""
+fi
+
+if ! pkg-config --exists cppunit; then
+ cppunit="--disable-tests"
+else
+ cppunit=""
+fi
-if pkg-config --exists cppunit; then cppunit=""; else cppunit="--disable-tests"; fi
+# patch taken from Debian
+zcat $CWD/mdds-1.2.patch.gz | patch -p1
+autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -81,8 +93,7 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux \
- $doc \
- $cppunit
+ $cppunit $doc
make
make install DESTDIR=$PKG