aboutsummaryrefslogtreecommitdiff
path: root/libraries/libcmis/libcmis.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libcmis/libcmis.SlackBuild')
-rw-r--r--libraries/libcmis/libcmis.SlackBuild35
1 files changed, 19 insertions, 16 deletions
diff --git a/libraries/libcmis/libcmis.SlackBuild b/libraries/libcmis/libcmis.SlackBuild
index 128eaea98464f..cf9049721eb3c 100644
--- a/libraries/libcmis/libcmis.SlackBuild
+++ b/libraries/libcmis/libcmis.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Libcmis
-# 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=libcmis
-VERSION=${VERSION:-0.5.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.5.1}
+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"
@@ -54,13 +54,13 @@ else
LIBDIRSUFFIX=""
fi
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -69,15 +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 {} \;
-if pkg-config --exists cppunit; then cppunit=""; else cppunit="--disable-tests"; fi
+if pkg-config --exists cppunit; then
+ cppunit='--enable-tests'
+else
+ cppunit='--disable-tests'
+fi
-# https://github.com/pld-linux/libcmis/blob/master/libcmis-boost-gcc.patch
-# Needed for compiling on current
-zcat $CWD/libcmis-boost-gcc.patch.gz | patch -p1
+# libcmis is not a GNU-conformant project
+# https://github.com/tdf/libcmis/commit/ad89848c93d9357992f6d7d9a5b1e602f25e930c
+zcat $CWD/configure.patch.gz | patch -p1
-# generate the configure file
-sed '/configure/d' -i autogen.sh
-./autogen.sh
+autoreconf -fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -86,6 +88,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--with-boost=/usr/include \
--disable-static \
+ --disable-werror \
--build=$ARCH-slackware-linux \
$cppunit
@@ -99,7 +102,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING* NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING* NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install