summaryrefslogtreecommitdiff
path: root/libraries/pypoppler/pypoppler.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/pypoppler/pypoppler.SlackBuild')
-rw-r--r--libraries/pypoppler/pypoppler.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/libraries/pypoppler/pypoppler.SlackBuild b/libraries/pypoppler/pypoppler.SlackBuild
index 893c5212c3..3daca31ae4 100644
--- a/libraries/pypoppler/pypoppler.SlackBuild
+++ b/libraries/pypoppler/pypoppler.SlackBuild
@@ -5,16 +5,14 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=pypoppler
-VERSION=${VERSION:-0.10.1}
+VERSION=0.12.1
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -30,6 +28,9 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -56,9 +57,6 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-# Remove poppler.la.
-find $PKG -name "*.la" -exec rm -f {} \;
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true