diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2010-06-12 06:44:49 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-12 07:47:28 -0500 |
commit | 8920c3cbc3c85125309a617a08703efb1df47748 (patch) | |
tree | 136aa9555ce6de9c8ee82b7d9fafe8ff586858c4 /libraries/podofo/podofo.SlackBuild | |
parent | 6e28b4438c46cee8d67d923046786ffd04116b8f (diff) |
libraries/podofo: Updated for version 0.8.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'libraries/podofo/podofo.SlackBuild')
-rw-r--r-- | libraries/podofo/podofo.SlackBuild | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/libraries/podofo/podofo.SlackBuild b/libraries/podofo/podofo.SlackBuild index 2f107e6bbaa9c..f19cfe906c080 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 |