diff options
Diffstat (limited to 'perl/rakudo/rakudo.SlackBuild')
-rw-r--r-- | perl/rakudo/rakudo.SlackBuild | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/perl/rakudo/rakudo.SlackBuild b/perl/rakudo/rakudo.SlackBuild index 6e515a893f..5fdff142a9 100644 --- a/perl/rakudo/rakudo.SlackBuild +++ b/perl/rakudo/rakudo.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for rakudo -# Copyright 2018-2019 Andreas Voegele <andreas@andreasvoegele.com> +# Copyright 2020- Michel Begue <mab974@gmail.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 @@ -17,7 +18,7 @@ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. PRGNAM=rakudo -VERSION=${VERSION:-2019.07.1} +VERSION=${VERSION:-2021.03} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -78,36 +79,51 @@ if [ "${MAKETEST:-no}" = "yes" ]; then fi env -u LD_PRELOAD make install DESTDIR=$PKG +if [ -e $PKG/usr/bin/rakudo ]; then + ln -sf rakudo $PKG/usr/bin/raku +fi + +if [ -e $PKG/usr/bin/rakudo-debug ]; then + ln -sf rakudo-debug $PKG/usr/bin/raku-debug +fi + +for i in $PKG/usr/bin/perl6*; do + j=$(basename $i | sed 's/perl6/rakudo/') + if [ -e $PKG/usr/bin/$j ]; then + ln -sf $j $i + fi +done + # Arch Linux uses the name perl6-install-dist. -cp tools/install-dist.p? $PKG/usr/bin/perl6-install-dist -chmod 755 $PKG/usr/bin/perl6-install-dist +cp tools/install-dist.p? $PKG/usr/bin/raku-install-dist +chmod 755 $PKG/usr/bin/raku-install-dist +ln -s raku-install-dist $PKG/usr/bin/perl6-install-dist # Create rakudo.csh and rakudo.sh in /etc/profile.d. -BINDIRS='$HOME/.perl6/bin:/usr/share/perl6/site/bin:/usr/share/perl6/vendor/bin' +BINDIRS='$HOME/.raku/bin:/usr/share/perl6/site/bin:/usr/share/perl6/vendor/bin' mkdir -p $PKG/etc/profile.d -cat << EOF > $PKG/etc/profile.d/rakudo.csh.new +cat << EOF > $PKG/etc/profile.d/rakudo.csh #!/bin/csh setenv PATH \${PATH}:$BINDIRS EOF -chmod 755 $PKG/etc/profile.d/rakudo.csh.new -cat << EOF > $PKG/etc/profile.d/rakudo.sh.new +chmod 755 $PKG/etc/profile.d/rakudo.csh +cat << EOF > $PKG/etc/profile.d/rakudo.sh #!/bin/sh export PATH=\$PATH:$BINDIRS EOF -chmod 755 $PKG/etc/profile.d/rakudo.sh.new +chmod 755 $PKG/etc/profile.d/rakudo.sh find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CREDITS LICENSE README.md \ + CREDITS LICENSE README.md docs/ChangeLog \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |