# Template build file for 'MoarVM'.
pkgname=MoarVM
only_for_archs="i686 x86_64"
version=2016.02
revision=1
build_style=configure
configure_script="perl Configure.pl"
configure_args="--prefix=/usr --has-libuv --has-libatomic_ops --has-libffi"
hostmakedepends="perl libuv-devel libatomic_ops-devel libffi-devel"
makedepends="${hostmakedepends}"
short_desc="MoarVM is a virtual machine for Rakudo Perl 6"
maintainer="Ruslan <axetwe@gmail.com>"
homepage="http://moarvm.com"
license="Artistic-2.0"
distfiles="http://moarvm.org/releases/MoarVM-${version}.tar.gz"
checksum=3bdacebba98e6b2d3d10f12af0ab514dec27fb24b15ed00aef479b7d190ce40a
shlib_provides="libmoar.so"
make_install_target="install"

do_clean() {
	rm -rf ${DESTDIR}/usr/include/libuv ${DESTDIR}/usr/include/libtommath
}
