mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
perl/rakudo: Updated for version 2020.02.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
f10ea7d40f
commit
d02055a7a5
3 changed files with 8 additions and 26 deletions
|
@ -1,15 +0,0 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||
# toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
config etc/profile.d/rakudo.csh.new
|
||||
config etc/profile.d/rakudo.sh.new
|
|
@ -17,7 +17,7 @@
|
|||
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
PRGNAM=rakudo
|
||||
VERSION=${VERSION:-2020.01}
|
||||
VERSION=${VERSION:-2020.02}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -68,8 +68,6 @@ find -L . \
|
|||
# The package manager will remove old files.
|
||||
sed -i 's/\$cfg->clean_old_p6_libs;//' Configure.pl
|
||||
|
||||
sed -i 's,\.perl6/rakudo-history,.raku/rakudo-history,' src/core.c/REPL.pm6
|
||||
|
||||
perl Configure.pl \
|
||||
--prefix=/usr \
|
||||
--backends=$BACKENDS
|
||||
|
@ -103,16 +101,16 @@ ln -s raku-install-dist $PKG/usr/bin/perl6-install-dist
|
|||
# Create rakudo.csh and rakudo.sh in /etc/profile.d.
|
||||
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
|
||||
|
@ -125,7 +123,6 @@ 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}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="rakudo"
|
||||
VERSION="2020.01"
|
||||
VERSION="2020.02"
|
||||
HOMEPAGE="https://rakudo.org/"
|
||||
DOWNLOAD="https://github.com/rakudo/rakudo/releases/download/2020.01/rakudo-2020.01.tar.gz"
|
||||
MD5SUM="6d129d8ffefdf7f6a9f8baa10c91db7a"
|
||||
DOWNLOAD="https://github.com/rakudo/rakudo/releases/download/2020.02/rakudo-2020.02.tar.gz"
|
||||
MD5SUM="45d201de16a7aba259f39e3f18aed09c"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="nqp"
|
||||
|
|
Loading…
Reference in a new issue