summaryrefslogtreecommitdiff
path: root/graphics/pdf2png/pdf2png.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2014-12-18 14:08:00 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-12-18 14:08:00 +0700
commit16ba23905eda5ec312d695dd0c3bfbdec2aadb48 (patch)
treef5aef844bcacbba07ebb25ea3cb9068f5f844c60 /graphics/pdf2png/pdf2png.SlackBuild
parentacbaed2e23d9063fdc62b91ce436ed683a51af37 (diff)
downloadslackbuilds-16ba23905eda5ec312d695dd0c3bfbdec2aadb48.tar.gz
graphics/pdf2png: Updated for version 0.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/pdf2png/pdf2png.SlackBuild')
-rw-r--r--graphics/pdf2png/pdf2png.SlackBuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/graphics/pdf2png/pdf2png.SlackBuild b/graphics/pdf2png/pdf2png.SlackBuild
index fb7d499296..4eb10311bf 100644
--- a/graphics/pdf2png/pdf2png.SlackBuild
+++ b/graphics/pdf2png/pdf2png.SlackBuild
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=pdf2png
-VERSION=${VERSION:-0.4}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.5}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -32,13 +32,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
- arm*) export ARCH=arm ;;
- *) export ARCH=$( uname -m ) ;;
- esac
-fi
+ARCH=noarch
set -e
@@ -55,6 +49,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patch for using python3 in header
+sed -i 's|#!/usr/bin/python3|#!/usr/bin/python|' bin/$PRGNAM.py
+
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION