diff options
Diffstat (limited to 'source/l/jasper/jasper.SlackBuild')
-rwxr-xr-x | source/l/jasper/jasper.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/source/l/jasper/jasper.SlackBuild b/source/l/jasper/jasper.SlackBuild index b42ca47f5..01dafd13c 100755 --- a/source/l/jasper/jasper.SlackBuild +++ b/source/l/jasper/jasper.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 2007, 2008 Eric Hameleers, Eijdhoven, NL -# Copyright 2009, 2010, 2018 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2009, 2010, 2018, 2022 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # Permission to use, copy, modify, and distribute this software for @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=jasper -SRCNAM=jasper-version +SRCNAM=jasper VERSION=${VERSION:-$(echo $SRCNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-1} @@ -100,10 +100,18 @@ cd - mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION cp -a \ - COPYRIGHT INSTALL LICENSE README* \ + COPYRIGHT* ChangeLog INSTALL* LICENSE* NEWS* README* \ $PKG/usr/doc/$PKGNAM-$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \+ +# 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/${PKGNAM}-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \+ for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done |