summaryrefslogtreecommitdiff
path: root/bootstrap/jamvm-1.5.1/APKBUILD
blob: c66c0c5935deb950d50ca1551457ee1b16c19820 (plain) (blame)
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
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=jamvm
pkgver=1.5.1
pkgrel=0
pkgdesc="a compact and comprehensible Java Virtual Machine, compatible with Classpath and OpenJDK"
url="https://jamvm.sourceforge.net/"
arch="all"
options="!check" #No test suite provided.
license="GPL-2.0+"
depends="fastjar jikes classpath=0.93-r0"
makedepends="autoconf automake zlib-dev fastjar jikes libltdl libffi-dev zip classpath=0.93-r0"
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz 
        $pkgname-$pkgver-classes-location.patch 
	$pkgname-$pkgver-aarch64-support.patch
	$pkgname-fpucontrol-fix.patch
	$pkgname-$pkgver-san-fixes.patch
	$pkgname-$pkgver-ppc64-lock.patch
	"

prepare() {
	rm -v lib/classes.zip
	default_prepare
	autoreconf -vif
	  }

build() {
	export JAVAC="/usr/bin/jikes"
	./configure \
		--enable-ffi \
		--disable-int-caching \
		--enable-runtime-reloc-checks \
		--prefix=/usr/$pkgname \
		--datadir=/usr/share \
		--bindir=/usr/bin \
		--with-classpath-install-dir=/usr
	make 
	}

package() {
	make DESTDIR="$pkgdir" install
	ln -s jamvm "$pkgdir"/usr/bin/java
	ln -s jikes "$pkgdir"/usr/bin/javac
	ln -s fastjar "$pkgdir"/usr/bin/jar
	  }

sha512sums="9f93611fefb28b5494d166d7ec9575eb8d12add775dd65b2b46303355e3f845f417d5301649a1f09cb306e6690cd82b67cb1dface30ce18d0b2ecc815d3bc9b9  jamvm-1.5.1.tar.gz
4c2849be53d250cbccd10119e0826200b5cb893a5647d4f1e257e8fc30014d617136b406239d3b11d68bd85cdc7f34af8461bbeb0a6cb5c5367503e15b53fd30  jamvm-1.5.1-classes-location.patch
1a692e282dad56bc4408142166eef22dce314dc7014994c85a59e5ba15fdda6aded89b16e8d58c2e3afb144447d2aafe2581102dbf5cf51969531ff67768c16f  jamvm-1.5.1-aarch64-support.patch
0ab07b96bdaae346b1bacbc7736488e357f7a959302b09d69ee038fdbf817f798ebf7cce47b79a2ed5febc688307871804eed71a278b0f499bb88eb48a897565  jamvm-fpucontrol-fix.patch
1c8b98946546098a8c831a875dae5d20751b2c27c68892189c5a5bc89cd5b7aed92fd37eaf8786f4d50b6443287380e614f296dd295502d1ab87866e3e4835de  jamvm-1.5.1-san-fixes.patch
fbe84ee8dd9a8325965c48998b36fdfbc30f0c47b61c47ff97e630f31ce769939f1448b60bded66cdc6b5f7e884e60200ee9a30f7bb717a22ec1babe7460262d  jamvm-1.5.1-ppc64-lock.patch"