diff options
Diffstat (limited to 'perl/zef')
-rw-r--r-- | perl/zef/README | 2 | ||||
-rw-r--r-- | perl/zef/zef.SlackBuild | 25 | ||||
-rw-r--r-- | perl/zef/zef.info | 10 |
3 files changed, 25 insertions, 12 deletions
diff --git a/perl/zef/README b/perl/zef/README index 063f1b5836..04b4ac76e0 100644 --- a/perl/zef/README +++ b/perl/zef/README @@ -1,3 +1,3 @@ The zef package manager downloads and installs Raku modules. -By default, the modules are installed in ~/.perl6. +By default, the modules are installed in ~/.raku. diff --git a/perl/zef/zef.SlackBuild b/perl/zef/zef.SlackBuild index 5fc66c4a7f..d5416bd67c 100644 --- a/perl/zef/zef.SlackBuild +++ b/perl/zef/zef.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for zef -# Copyright 2018-2019 Andreas Voegele <andreas@andreasvoegele.com> +# 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 # purpose with or without fee is hereby granted, provided that the above @@ -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.2} +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 diff --git a/perl/zef/zef.info b/perl/zef/zef.info index a1c124ca4d..df4cf2a2da 100644 --- a/perl/zef/zef.info +++ b/perl/zef/zef.info @@ -1,10 +1,10 @@ PRGNAM="zef" -VERSION="0.8.2" +VERSION="0.21.4" HOMEPAGE="https://github.com/ugexe/zef" -DOWNLOAD="https://github.com/ugexe/zef/archive/v0.8.2/zef-0.8.2.tar.gz" -MD5SUM="42365330c53aee48b2786f4ead33114e" +DOWNLOAD="https://github.com/ugexe/zef/archive/v0.21.4/zef-0.21.4.tar.gz" +MD5SUM="d2b5546558f55d4fe4438bbdfea032f8" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="rakudo" -MAINTAINER="Andreas Voegele" -EMAIL="andreas@andreasvoegele.com" +MAINTAINER="Michel Begue" +EMAIL="mab974@misouk.com" |