Package Details: jamvm 1.5.4-1

Package Base: jamvm
Description: "A Compact Java Virtual Machine which conforms to the JVM
Upstream URL: http://jamvm.sourceforge.net/
Category: devel
Licenses: GPL
Submitter: None
Maintainer: ArLi
Last Packager: None
Votes: 7
First Submitted: 2006-08-20 04:21
Last Updated: 2013-09-05 04:58

Latest Comments

Comment by birdspider

2014-09-29 12:27

updated to 2.0.0, plited build and package, changed install to install-strip

tested a bit with "/usr/bin/rlwrap jamvm -cp .:/usr/share/clojure/clojure.jar clojure.main"

does not support the java -jamvm flag , since I couldn't figure out how to do that

--------------------------------------------------------------------------
# Maintainer: Samuel Tardieu <sam@rfc1149.net>
# Contributor: Sean Gillespie <Sean.D.Gillespie@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
# Contributor: Patrik Plihal <patrik.plihal@gmail.com>
pkgname=jamvm
pkgver=2.0.0
pkgrel=1
pkgdesc="A Compact Java Virtual Machine which conforms to the JVM specification"
arch=('i686' 'x86_64')
url="http://jamvm.sourceforge.net/"
license=("GPL")
depends=('classpath' 'zlib' 'libffi')
makedepends=('pkg-config')
source=("http://downloads.sourceforge.net/sourceforge/jamvm/$pkgname-$pkgver.tar.gz")
md5sums=('a6e3321ef4b3cfb4afc20bd75452e11e')

build() {
cd $startdir/src/$pkgname-$pkgver

export CFLAGS="$CFLAGS `pkg-config libffi --cflags`"

# one of gnuclasspath, openjdk6, openjdk7 or openjdk8 - only gnuclasspath works for me
./configure --with-java-runtime-library=gnuclasspath --with-classpath-install-dir=/usr --prefix=/usr --enable-ffi

make
}

package() {
cd $startdir/src/$pkgname-$pkgver

# DOC install-strip: Alternatively, to install a version with no symbols (which is much smaller)
make DESTDIR="${pkgdir}" install-strip

# Avoid conflict with classpath (which jamvm requires)
install -D ${pkgdir}/usr/include/jni.h ${pkgdir}/usr/include/jamvm/jni.h
rm ${pkgdir}/usr/include/jni.h
}
--------------------------------------------------------------------------

Comment by ArLi

2011-11-12 22:11

after some-update i got Segmentation fault.
referer by http://sourceforge.net/projects/jamvm/forums/forum/256481/topic/4015576 i try create new script for that, with --enable-ffi now work fine.
i like jamvm, hope update continue. this's my pkgbuild:

# Maintainer: Samuel Tardieu <sam@rfc1149.net>
# Contributor: Sean Gillespie <Sean.D.Gillespie@gmail.com>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=jamvm
pkgver=1.5.4
pkgrel=1
pkgdesc="A Compact Java Virtual Machine which conforms to the JVM specification"
arch=('i686' 'x86_64')
url="http://jamvm.sourceforge.net/"
license=("GPL")
depends=('classpath' 'zlib' 'libffi')
makedepends=('pkg-config')
source=("http://downloads.sourceforge.net/sourceforge/jamvm/$pkgname-$pkgver.tar.gz")
md5sums=('7654e9657691f5f09c4f481ed4686176')

build() {
cd $startdir/src/$pkgname-$pkgver
export CFLAGS="$CFLAGS `pkg-config libffi --cflags`"

./configure --with-classpath-install-dir=/usr \
--prefix=/usr --enable-ffi

make || return 1
make DESTDIR=$startdir/pkg install || exit 1
rm "$pkgdir"/usr/lib/libjvm.la
# Avoid conflict with classpath (which jamvm requires)
install -D $startdir/pkg/usr/include/jni.h $startdir/pkg/usr/include/jamvm/jni.h
rm $startdir/pkg/usr/include/jni.h
}