summaryrefslogtreecommitdiffstats
path: root/development/chicken/chicken.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/chicken/chicken.SlackBuild')
-rw-r--r--development/chicken/chicken.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/development/chicken/chicken.SlackBuild b/development/chicken/chicken.SlackBuild
index f3ac1fbf28..4873d5938b 100644
--- a/development/chicken/chicken.SlackBuild
+++ b/development/chicken/chicken.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for CHICKEN Scheme
-# Written by Erik Falor (ewfalor@gmail.com) 2019
+# Written by Erik Falor (ewfalor@gmail.com) 2022
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,16 @@
+cd $(dirname $0) ; CWD=$(pwd)
+
# increment this number to match the Chicken library version
CHICKEN_API_VER=11
PRGNAM=chicken
-VERSION=${VERSION:-5.1.0}
+VERSION=${VERSION:-5.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -40,7 +43,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -88,7 +98,7 @@ make \
MANDIR=/usr/man \
DOCDIR=/usr/doc/$PRGNAM-$VERSION
-make install \
+make -j1 install \
C_COMPILER_OPTIMIZATION_OPTIONS="$SLKCFLAGS" \
PLATFORM=linux \
PREFIX=/usr \
@@ -111,4 +121,4 @@ 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