contrib/rakudo/Pkgfile
2012-12-16 22:53:30 +01:00

28 lines
1021 B
Plaintext

# Description: distribution of Perl 6
# URL: http://rakudo.org/
# Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl
# Depends on: icu parrot
name=rakudo
version=2012.11
release=1
source=(https://github.com/downloads/$name/star/$name-star-$version.tar.gz)
build() {
cd $name-star-$version
perl ./Configure.pl --prefix=/usr
make
# thanks to: https://aur.archlinux.org/packages/ra/rakudo/PKGBUILD and http://hoelz.ro/blog/building-rakudo-perl-6-for-arch-linux
export PERL6LIB="$PKG$(parrot_config libdir)$(parrot_config versiondir)/languages/perl6/lib"
ln -s "$PKG$(parrot_config libdir)$(parrot_config versiondir)/languages/nqp/lib/Perl6" .
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PKG$(parrot_config libdir)$(parrot_config versiondir)/dynext"
make DESTDIR="$PKG" install
# remove references to $PKG
find "$PKG" \( -iname '*.pir' -o -name 'panda' -o -name 'ufo' -o -name 'p6doc' \) \
-exec env strip="$PKG" perl -pe 's/\Q$ENV{strip}//g' -i {} +
}