# Template build file for 'panda'.
pkgname=panda
version=2016.02
revision=1
hostmakedepends="git rakudo"
depends="rakudo>=2016.03 git"
short_desc="Panda is a Perl 6 module manager"
maintainer="Ruslan <axetwe@gmail.com>"
homepage="https://github.com/tadzik/panda"
license="MIT"
distfiles="https://github.com/tadzik/panda/archive/${version}.tar.gz"
nocross="yes"
checksum=e8ced2b70ca9f5dc43affb09d5859132e570d493e363020db433ef0a13768b08

broken="http://build.voidlinux.eu/builders/x86_64_builder/builds/22182/steps/shell_3/logs/stdio"

do_build() {
	vmkdir usr
	./bootstrap.pl
}

do_install() {
	vmkdir usr/share/perl6
	cp -r /usr/share/perl6/site ${DESTDIR}/usr/share/perl6/
}

post_install() {
	vinstall ${FILESDIR}/panda.sh 644 etc/profile.d
	vlicense LICENSE
}
