summaryrefslogtreecommitdiff
path: root/bootstrap/jamvm-1.5.1/APKBUILD
diff options
context:
space:
mode:
authorHorst Burkhardt <horst@adelielinux.org>2024-09-07 17:59:25 +1000
committerHorst Burkhardt <horst@adelielinux.org>2024-09-07 17:59:25 +1000
commitd6f0c6dab09df8c6454a0779dcd192c35140c3a7 (patch)
tree42dfc33af088774721a0c0e42084d1ab86177bcc /bootstrap/jamvm-1.5.1/APKBUILD
parent218ce9b5205fbc767e0af574d17c7f513d0df734 (diff)
downloadpackages-d6f0c6dab09df8c6454a0779dcd192c35140c3a7.tar.gz
packages-d6f0c6dab09df8c6454a0779dcd192c35140c3a7.tar.bz2
packages-d6f0c6dab09df8c6454a0779dcd192c35140c3a7.tar.xz
packages-d6f0c6dab09df8c6454a0779dcd192c35140c3a7.zip
bootstrap/jamvm-1.5.1: new package
Signed-off-by: Horst Burkhardt <horst@adelielinux.org>
Diffstat (limited to 'bootstrap/jamvm-1.5.1/APKBUILD')
-rw-r--r--bootstrap/jamvm-1.5.1/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/bootstrap/jamvm-1.5.1/APKBUILD b/bootstrap/jamvm-1.5.1/APKBUILD
new file mode 100644
index 000000000..bf4f968b7
--- /dev/null
+++ b/bootstrap/jamvm-1.5.1/APKBUILD
@@ -0,0 +1,48 @@
+# 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"
+makedepends="zlib-dev fastjar jikes libltdl zip classpath-0.93"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname-$pkgver-classes-location.patch
+ $pkgname-$pkgver-aarch64-support.patch
+ $pkgname-fpucontrol-fix.patch"
+
+prepare() {
+ rm -v lib/classes.zip
+ default_prepare
+ sed -i -e "s/return CLASSPATH_INSTALL_DIR\"\/lib\/classpath\";/return CLASSPATH_INSTALL_DIR\"\/$(get_libdir)\/classpath\";/g" src/dll.c
+ autoreconf
+ }
+
+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 /usr/bin/jamvm /usr/bin/java
+ ln -s /usr/bin/jikes /usr/bin/javac
+ ln -s /usr/bin/fastjar /usr/bin/jar
+ }
+
+sha512sums="9f93611fefb28b5494d166d7ec9575eb8d12add775dd65b2b46303355e3f845f417d5301649a1f09cb306e6690cd82b67cb1dface30ce18d0b2ecc815d3bc9b9 jamvm-1.5.1.tar.gz
+4380a95ee83bbcb076c8f19854dcd1c78fb81bc210ed2da04ce37d5977a0788debb1a3de04adff8295a6c5623e2fb2aa20739dd743f4e5b7fafaabe323189e0e jamvm-1.5.1-aarch64-support.patch
+0e441916dbf66289bea37da807a85930a9fe320b5c3a5301df85a870418125fe9fe0c5fb7ce7e4baa9dfc75a3438509e9d77b0ede67b06411935875ec7e641ee jamvm-1.5.1-classes-location.patch
+0ab07b96bdaae346b1bacbc7736488e357f7a959302b09d69ee038fdbf817f798ebf7cce47b79a2ed5febc688307871804eed71a278b0f499bb88eb48a897565 jamvm-fpucontrol-fix.patch"