summaryrefslogtreecommitdiffstats
path: root/source.local/l/poppler-data/poppler-data.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source.local/l/poppler-data/poppler-data.SlackBuild')
-rwxr-xr-xsource.local/l/poppler-data/poppler-data.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/source.local/l/poppler-data/poppler-data.SlackBuild b/source.local/l/poppler-data/poppler-data.SlackBuild
index 1c77ed9..a611782 100755
--- a/source.local/l/poppler-data/poppler-data.SlackBuild
+++ b/source.local/l/poppler-data/poppler-data.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,7 @@
PKGNAM=poppler-data
-VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+VERSION=${VERSION:-0.4.5}
ARCH=noarch
BUILD=${BUILD:-1}
@@ -53,6 +53,14 @@ cp -a \
COPYING* README \
$PKG/usr/doc/${PKGNAM}-$VERSION
+# If there's a ChangeLog, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/*-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc