aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nqp/APKBUILD
blob: dd7763a549e89f4dab0fb3431160c34fb3bae98a (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
# Contributor: Curt Tilmes <Curt.Tilmes@nasa.gov>
# Maintainer: Curt Tilmes <Curt.Tilmes@nasa.gov>
pkgname=nqp
pkgver=2018.02
pkgrel=0
pkgdesc="Not Quite Perl"
url="https://github.com/perl6/nqp"
arch="all"
options="!archcheck" # Arch dependencies are embedded
license="Artistic-2.0"
depends="moarvm"
makedepends="perl-utils gcc musl-dev make moarvm-dev"
install=""
subpackages="$pkgname-doc $pkgname-examples"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/perl6/nqp/archive/${pkgver}.tar.gz"
builddir="$srcdir"/"$pkgname"-"$pkgver"

build() {
	cd "$builddir"
        perl Configure.pl --prefix=/usr --backends=moar
        make
}

check() {
        cd "$builddir"
        make test
}

package() {
	cd "$builddir"
        make DESTDIR="$pkgdir" install
}

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
	for file in CREDITS LICENSE README.pod VERSION docs; do
                cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
        done
}

examples() {
	cd "$builddir"
        mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
        for file in examples; do
                cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
        done
}

sha512sums="6e12bd191522c1acc4195dfb98982b6ddc54decb5a40b9995ffc16fb0988bb96fb27057e77dedcbf2dfbc1b222a4fe92df19cb585ed53bb021b9d07b20275efc  nqp-2018.02.tar.gz"