aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rakudo/APKBUILD
blob: 26fc29248c7e9ef6ff6e30984e3b72c8eeabbc7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=rakudo
pkgver=2018.06
pkgrel=0
pkgdesc="A compiler for the Perl 6 programming language"
url="http://rakudo.org/"
arch="all !x86"
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"
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.pl "$subpkgdir"/usr/share/perl6/bin/install-dist.pl
}

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="b14b19d4952f8725868612e9295e3e1c04523cfe948b55db02a1bab463d5a586bfaf6e32e9218a14d7d063d322b337358de561dceec44e5d59617a7e0e4b60a8  rakudo-2018.06.tar.gz"