diff options
author | Juan M. Lasca <juanmlasca@gmail.com> | 2023-01-12 20:54:58 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:08 +0700 |
commit | 56f084c344db9bac6441750b449a001c7f9f1f99 (patch) | |
tree | 509ea9bf0d4c262855c1c7e30040a68ee40023bd /development/newlisp/newlisp.SlackBuild | |
parent | 7e49f9515ab88327ae8450691ae8c7579acc84b9 (diff) |
development/newlisp: Updated for version 10.7.5. New maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/newlisp/newlisp.SlackBuild')
-rw-r--r-- | development/newlisp/newlisp.SlackBuild | 50 |
1 files changed, 41 insertions, 9 deletions
diff --git a/development/newlisp/newlisp.SlackBuild b/development/newlisp/newlisp.SlackBuild index bb2ea09d26..6cf18b82ae 100644 --- a/development/newlisp/newlisp.SlackBuild +++ b/development/newlisp/newlisp.SlackBuild @@ -1,16 +1,36 @@ #!/bin/bash # -# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com) +# Slackware build script for newlisp # -# Latest version by Markus Hutmacher (markus dot hutmacher at gmail dot com) -# May 2013 +# Copyright 2022 Juan M. Lasca <juanmlasca@gmail.com> +# All rights reserved. # -# Public domain +# 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. + +# 2011: Written by Jockey S. Kyd <jockey.kyd@gmail.com> +# 2012-2022: Updated by Matteo Bernardini <ponce@slackbuilds.org> +# and Markus Hutmacher <markus.hutmacher@gmail.com> +# 2022: Updated by Juan M. Lasca <juanmlasca@gmail.com> cd $(dirname $0) ; CWD=$(pwd) PRGNAM=newlisp -VERSION=${VERSION:-10.6.2} +VERSION=${VERSION:-10.7.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -23,9 +43,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -67,6 +84,7 @@ find -L . \ ./configure-alt \ --prefix=/usr \ --mandir=/usr/man \ + --datadir=/usr/share \ --docdir=/usr/doc/$PRGNAM-$VERSION make make install DESTDIR=$PKG @@ -86,7 +104,21 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION fi done ) -cp -a README examples $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README $PKG/usr/doc/$PRGNAM-$VERSION + +# copy relevant files to pkg's doc dir, avoiding unnecessary ones +( + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples; + cd examples; + for i in $(cut -f1 -d' ' README.txt); do + cp -a $i $PKG/usr/doc/$PRGNAM-$VERSION/examples/; + done; + chmod 644 $PKG/usr/doc/$PRGNAM-$VERSION/examples/*; +) + +# remove install instructions from $PKG/doc +rm $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL; + cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |