summaryrefslogtreecommitdiff
path: root/libraries/podofo/podofo.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/podofo/podofo.SlackBuild')
-rw-r--r--libraries/podofo/podofo.SlackBuild21
1 files changed, 14 insertions, 7 deletions
diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild
index 2f107e6bba..f19cfe906c 100644
--- a/libraries/podofo/podofo.SlackBuild
+++ b/libraries/podofo/podofo.SlackBuild
@@ -5,9 +5,8 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=podofo
-VERSION=${VERSION:-0.7.0}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+VERSION="0.8.0"
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -15,8 +14,13 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# I changed the default LIBDIRSUFFIX to TRUE/FALSE because
-# cmake chooses it for us with -DWANT_LIB64:BOOL.
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -27,6 +31,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="TRUE"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX="FALSE"
fi
set -e
@@ -56,7 +63,7 @@ mkdir build && cd build
-DWANT_LIB64:BOOL=$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release ..
- make
+ make VERBOSE=1
make install DESTDIR=$PKG
cd -
@@ -65,7 +72,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS ChangeLog CODING* COPYING* FAQ* INSTALL README* TODO \
+ AUTHORS ChangeLog CODING* CONTRIBUTIONS* COPYING* FAQ* INSTALL README* TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild