33 lines
831 B
Bash
33 lines
831 B
Bash
# Template build file for 'rakudo-star'.
|
|
pkgname=rakudo-star
|
|
version=2016.07
|
|
revision=2
|
|
hostmakedepends="panda"
|
|
makedepends="libatomic_ops-devel libffi-devel libuv-devel"
|
|
depends="panda>=2016.02"
|
|
short_desc="Perl 6 distribution that includes common modules"
|
|
maintainer="Ruslan <axetwe@gmail.com>"
|
|
homepage="http://rakudo.org"
|
|
license="Artistic-2.0"
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
pre_build() {
|
|
cd /usr/share/perl6/site
|
|
find -type f > list.txt
|
|
}
|
|
|
|
do_build() {
|
|
export PATH="$PATH:/usr/share/perl6/site/bin"
|
|
panda --notests --force install Task::Star
|
|
cp /usr/share/perl6/site/panda/state /usr/share/perl6/site/panda/state.bak
|
|
}
|
|
|
|
do_install() {
|
|
cd /usr/share/perl6/site
|
|
xargs rm < list.txt
|
|
find . -type d -empty -delete
|
|
mv panda/state.bak panda/state
|
|
vmkdir usr/share/perl6
|
|
cp -r /usr/share/perl6/site ${DESTDIR}/usr/share/perl6/
|
|
}
|