# Contributor: Curt Tilmes # Maintainer: Curt Tilmes pkgname=rakudo pkgver=2018.10 pkgrel=1 pkgdesc="A compiler for the Perl 6 programming language" url="http://rakudo.org/" arch="all !x86 !armhf !armv7" license="Artistic-2.0" depends="nqp libffi" makedepends="perl-utils moarvm-dev libffi-dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::https://github.com/rakudo/rakudo/archive/$pkgver.tar.gz perf-increase-tolerance.patch" builddir="$srcdir"/rakudo-"$pkgver" build() { cd "$builddir" perl Configure.pl --prefix=/usr --backends=moar make M_INCPATH=/usr/include/moar make DESTDIR=install install } check() { cd "$builddir" make test } package() { cd "$builddir" install -Dm755 install/usr/bin/perl6 "$pkgdir"/usr/bin/perl6 for file in $(find install/usr/share -type f); do install -Dm644 ${file} "$pkgdir"/usr/share/${file#install/usr/share} done } dev() { cd "$builddir" install -Dm755 install/usr/bin/perl6-debug-m "$subpkgdir"/usr/bin/perl6-debug-m install -Dm755 install/usr/bin/perl6-gdb-m "$subpkgdir"/usr/bin/perl6-gdb-m install -Dm755 install/usr/bin/perl6-lldb-m "$subpkgdir"/usr/bin/perl6-lldb-m install -Dm755 install/usr/bin/perl6-m "$subpkgdir"/usr/bin/perl6-m install -Dm755 install/usr/bin/perl6-valgrind-m "$subpkgdir"/usr/bin/perl6-valgrind-m install -Dm755 tools/install-dist.p6 "$subpkgdir"/usr/share/perl6/bin/install-dist.p6 } doc() { cd "$builddir" mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname" for file in CONTRIBUTING.md CREDITS INSTALL.txt LICENSE README.md VERSION docs; do cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname" done } sha512sums="82ca24e6484dcd2c27287f609b8008f3044e3709a53dc96b259ccd612745c80ff0b2cb20b71460e434387ad7ea10895b751775286552684bfdd4d7d08d9e26da rakudo-2018.10.tar.gz 74a3e3bff623a8922d2aae2f43e25be1a7b8a2b0b128bc8eb15fa9f03307fe603cb342b644607b7d74b3a084fb936c47113ab6249a0e23bb3107727383201152 perf-increase-tolerance.patch"