aboutsummaryrefslogtreecommitdiff
path: root/misc/wkhtmltopdf/wkhtmltopdf.SlackBuild
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2015-07-13 08:32:23 +0700
committerRobby Workman <rworkman@slackbuilds.org>2015-07-16 10:57:19 -0500
commit0bbd4e46445b4618e0c9f8152ebd59f509680e3f (patch)
tree63c275d56197e01aa07dc8fe21833dd4f9eb3718 /misc/wkhtmltopdf/wkhtmltopdf.SlackBuild
parent27e41d14c6ac4e1e43d77b3461fa1d90a9b53072 (diff)
misc/wkhtmltopdf: Updated for version 0.12.2.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/wkhtmltopdf/wkhtmltopdf.SlackBuild')
-rw-r--r--misc/wkhtmltopdf/wkhtmltopdf.SlackBuild24
1 files changed, 13 insertions, 11 deletions
diff --git a/misc/wkhtmltopdf/wkhtmltopdf.SlackBuild b/misc/wkhtmltopdf/wkhtmltopdf.SlackBuild
index f67629aa54730..afd83eed458bc 100644
--- a/misc/wkhtmltopdf/wkhtmltopdf.SlackBuild
+++ b/misc/wkhtmltopdf/wkhtmltopdf.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wkhtmltopdf
-VERSION=${VERSION:-0.10.0_rc2}
+VERSION=${VERSION:-0.12.2.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,9 +36,9 @@ if [ -z "$ARCH" ]; then
fi
CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo} # For consistency's sake, use this
+TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp
+OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -60,14 +60,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.*z?
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -83,10 +83,12 @@ fi
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mkdir -p $PKG/usr/man
+mv $PKG/usr/share/man/* $PKG/usr/man/
+rm -rf $PKG/usr/share/
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING* README* \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING* README* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install