blob: 9f7a77c8feae8fba1bc76ef6a6f2e37d3d0e206f (
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=moarvm
pkgver=2019.07.1
pkgrel=0
pkgdesc="A VM for NQP And Rakudo Perl 6"
url="http://moarvm.org/"
arch="all"
license="Artistic-2.0"
makedepends="perl libffi-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://moarvm.org/releases/MoarVM-$pkgver.tar.gz"
builddir="$srcdir"/MoarVM-"$pkgver"
build() {
unset CPPFLAGS CFLAGS
perl Configure.pl --prefix=/usr --has-libffi
make
}
check() {
LD_LIBRARY_PATH=. ./moar --version
}
package() {
install -Dm755 moar "$pkgdir"/usr/bin/moar
install -Dm755 libmoar.so "$pkgdir"/usr/lib/libmoar.so
}
dev() {
cd "$builddir"
make DESTDIR="$builddir"/install install
for file in $(find install/usr/include/ -type f); do
install -Dm644 ${file} "$subpkgdir"/usr/include/moar/${file#install/usr/include}
done
for file in $(find install/usr/share/nqp -type f); do
install -Dm644 ${file} "$subpkgdir"/usr/share/nqp/${file#install/usr/share/nqp}
done
install -Dm644 install/usr/share/pkgconfig/moar.pc "$subpkgdir"/usr/lib/pkgconfig/moar.pc
}
doc() {
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/doc/"$pkgname"
for file in Artistic2.txt CREDITS LICENSE MANIFEST README.markdown VERSION docs; do
cp -r $file "$subpkgdir"/usr/share/doc/"$pkgname"
done
}
sha512sums="c8ffaf962191a60f643e6e1b765ec700664988ffc629765c273baf32d2748763480f9fd7a2d978b7f99d3ba4bf962775f4dca40053ace2ddd8cd0bffbd977d84 MoarVM-2019.07.1.tar.gz"
|