diff options
author | A. Green <lynx@panix.com> | 2016-05-03 19:33:25 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-05-04 11:50:38 +0700 |
commit | e42a8548bfa3f745ebea41edd44e8d813562224b (patch) | |
tree | 6728331353baaf174e32214fbc0ab898b92fa74c /system/dieharder/dieharder.SlackBuild | |
parent | 4194c4c32ed96d53cc46c3d486036c078f23b8dc (diff) |
system/dieharder: improved patch and added option for PDF manual.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/dieharder/dieharder.SlackBuild')
-rw-r--r-- | system/dieharder/dieharder.SlackBuild | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/system/dieharder/dieharder.SlackBuild b/system/dieharder/dieharder.SlackBuild index f7cbb17e9e7ef..c60c20f4ae4fc 100644 --- a/system/dieharder/dieharder.SlackBuild +++ b/system/dieharder/dieharder.SlackBuild @@ -1,33 +1,34 @@ #!/bin/sh -e -# SlackBuild for dieharder, 9 March 2016 +# SlackBuild for dieharder, 3 May 2016 # Arthur W. Green <lynx@panix.com> # All rights reserved. # -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: +# Redistribution and use of this script, with or without modification, +# is permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -# dieharder itself remains a copyrighted work under the terms of the -# GNU GPL v2 (with beverage provision). Please see the file COPYING -# in the dieharder source distribution for more on this. +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +## dieharder itself remains a copyrighted work under the terms of the +## GNU GPL v2 (with beverage provision). Please see the file COPYING +## in the dieharder source distribution for more on this. PRGNAM=dieharder VERSION=${VERSION:-3.31.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -70,6 +71,7 @@ find -L . -exec chmod -R u+w,go-w,a+rX-st {} \; # apply patches, mostly to appease crusty autoconf. patch -p1 < $CWD/$PRGNAM.patch +mkdir -p manual/m4 # a useless stub. ./autogen.sh @@ -97,6 +99,10 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING NOTES AUTHORS $PKG/usr/doc/$PRGNAM-$VERSION +if [ "${PDFMAN:-no}" = "yes" ]; then + ( cd manual; make pdf ) + cp -a manual/dieharder.pdf $PKG/usr/doc/$PRGNAM-$VERSION +fi cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |