diff options
Diffstat (limited to 'development/newlisp/newlisp.SlackBuild')
-rw-r--r-- | development/newlisp/newlisp.SlackBuild | 66 |
1 files changed, 54 insertions, 12 deletions
diff --git a/development/newlisp/newlisp.SlackBuild b/development/newlisp/newlisp.SlackBuild index f12d6a5ff8..6cf18b82ae 100644 --- a/development/newlisp/newlisp.SlackBuild +++ b/development/newlisp/newlisp.SlackBuild @@ -1,32 +1,59 @@ -#!/bin/sh +#!/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} if [ -z "$ARCH" ]; then case "$(uname -m)" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$(uname -m) ;; esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -57,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 @@ -76,11 +104,25 @@ 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 cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |