# Template build file for 'panda'.
pkgname=panda
only_for_archs="i686 x86_64"
version=2015.12
revision=1
hostmakedepends="perl git rakudo"
makedepends="${hostmakedepends}"
depends="rakudo>=2016.02 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
checksum=267f39e76d7c8fcb50e366589d831b7b5a19f363c44e8d7eaa20df9b9dc77fc3

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
}
