From 27f73f03addb72b505ade2d8e8a3015d552c0684 Mon Sep 17 00:00:00 2001
From: Linux User <tc@bork.work>
Date: Fri, 26 Feb 2016 06:41:05 +0000
Subject: [PATCH] MoarVM: update to 2016.02.

---
 srcpkgs/MoarVM/template | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/MoarVM/template b/srcpkgs/MoarVM/template
index adb944390d4..2e1a4b312c5 100644
--- a/srcpkgs/MoarVM/template
+++ b/srcpkgs/MoarVM/template
@@ -1,18 +1,22 @@
 # Template build file for 'MoarVM'.
 pkgname=MoarVM
 only_for_archs="i686 x86_64"
-version=2015.11
+version=2016.02
 revision=1
 build_style=configure
 configure_script="perl Configure.pl"
-configure_args="--prefix=/usr/lib/perl6"
-hostmakedepends="perl"
+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=eca0efcd620c51909b6caea8e3c8085f0de1dbb629dc064bea3a916a9bead5cf
+checksum=3bdacebba98e6b2d3d10f12af0ab514dec27fb24b15ed00aef479b7d190ce40a
 shlib_provides="libmoar.so"
 make_install_target="install"
+
+do_clean() {
+	rm -rf ${DESTDIR}/usr/include/libuv ${DESTDIR}/usr/include/libtommath
+}