diff options
Diffstat (limited to 'perl/zef/zef.SlackBuild')
-rw-r--r-- | perl/zef/zef.SlackBuild | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/perl/zef/zef.SlackBuild b/perl/zef/zef.SlackBuild index 7f3e767cb9..d5416bd67c 100644 --- a/perl/zef/zef.SlackBuild +++ b/perl/zef/zef.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for zef +# Copyright 2020- Michel Begue <mab974@misouk.com> # Copyright 2018-2020 Andreas Voegele <andreas@andreasvoegele.com> # # Permission to use, copy, modify, and distribute this software for any @@ -16,10 +17,13 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=zef -VERSION=${VERSION:-0.8.3} +VERSION=${VERSION:-0.21.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -29,7 +33,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} @@ -74,12 +85,14 @@ raku-install-dist \ --for=vendor \ --from=. +rm -rf $PKG/usr/share/perl6/vendor/precomp/* + mkdir -p $PKG/usr/bin ln -s /usr/share/perl6/vendor/bin/zef $PKG/usr/bin/zef mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE README.pod \ + LICENSE README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -87,4 +100,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 |