summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD44
-rw-r--r--jasmin2
-rw-r--r--jasmin-2.4.patch34
4 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..657f6e31e1b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = jasmin
+ pkgdesc = Assembler for the Java Virtual Machine
+ pkgver = 2.4
+ pkgrel = 1
+ url = http://jasmin.sourceforge.net/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = apache-ant
+ depends = java-runtime
+ source = http://sourceforge.net/projects/jasmin/files/jasmin/jasmin-2.4/jasmin-2.4.zip
+ source = http://jasmin.sourceforge.net/xt.html
+ source = jasmin-2.4.patch
+ source = jasmin
+ sha256sums = eaa10c68cec68206fd102e9ec7113739eccd790108a1b95a6e8c3e93f20e449d
+ sha256sums = e7ed5643689a9660345ceb7dae8ce2c10ca8481f8d8ab53f26bb27022c5669b0
+ sha256sums = c0cc10c30f3a46cd3a9f9923de088dea29067fd372091e076c78273eacec6082
+ sha256sums = ff12a47ae172ee5dc288684511e91025398e2c8dd2bca5426dabcfab355d2a37
+
+pkgname = jasmin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d1b73cc1502
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Contributor: Jaroslaw Rosiek <jaroslaw.rosiek@interia.pl>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+
+pkgname=jasmin
+pkgver=2.4
+pkgrel=1
+pkgdesc='Assembler for the Java Virtual Machine'
+url='http://jasmin.sourceforge.net/'
+license=('GPL')
+depends=('java-runtime')
+makedepends=('apache-ant')
+arch=('i686' 'x86_64')
+source=("http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.zip"
+ 'http://jasmin.sourceforge.net/xt.html'
+ "$pkgname-$pkgver.patch"
+ "$pkgname")
+sha256sums=('eaa10c68cec68206fd102e9ec7113739eccd790108a1b95a6e8c3e93f20e449d'
+ 'e7ed5643689a9660345ceb7dae8ce2c10ca8481f8d8ab53f26bb27022c5669b0'
+ 'c0cc10c30f3a46cd3a9f9923de088dea29067fd372091e076c78273eacec6082'
+ 'ff12a47ae172ee5dc288684511e91025398e2c8dd2bca5426dabcfab355d2a37')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ant "$pkgname"
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -Dm644 "$pkgname.jar" "$pkgdir/usr/share/java/$pkgname.jar"
+ install -d "$pkgdir/usr/share/jasmin/"
+ cp -R docs "$pkgdir/usr/share/$pkgname/"
+ install -Dm644 ../xt.html "$pkgdir/usr/share/$pkgname/docs"
+ install -Dm755 "../$pkgname" "$pkgdir/usr/bin/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/jasmin b/jasmin
new file mode 100644
index 00000000000..5674feda192
--- /dev/null
+++ b/jasmin
@@ -0,0 +1,2 @@
+#!/bin/sh
+java -jar /usr/share/java/jasmin.jar "$@"
diff --git a/jasmin-2.4.patch b/jasmin-2.4.patch
new file mode 100644
index 00000000000..879b87692b4
--- /dev/null
+++ b/jasmin-2.4.patch
@@ -0,0 +1,34 @@
+diff -ur jasmin-2.4/build.xml jasmin-2.4-new//build.xml
+--- jasmin-2.4/build.xml 2006-02-05 23:20:44.000000000 +0100
++++ jasmin-2.4-new//build.xml 2010-07-13 19:33:20.986003062 +0200
+@@ -77,7 +77,7 @@
+ <tstamp/>
+ <property name="Name" value="Jasmin"/>
+ <property name="name" value="jasmin"/>
+- <property name="version" value="2.1"/>
++ <property name="version" value="2.4"/>
+ <property name="year" value="2006"/>
+
+ <echo message="----------- ${Name} ${version} [${year}] ------------"/>
+@@ -294,4 +294,4 @@
+ </target>
+ </project>
+
+-<!-- End of file -->
+\ No newline at end of file
++<!-- End of file -->
+diff -ur jasmin-2.4/docs/index.html jasmin-2.4-new//docs/index.html
+--- jasmin-2.4/docs/index.html 2006-02-05 23:20:44.000000000 +0100
++++ jasmin-2.4-new//docs/index.html 2010-07-13 19:34:35.919655074 +0200
+@@ -41,6 +41,10 @@
+ <dd>this file (on SourceForge.net).<p>
+
+ <dt>
++<a href = "xt.html">NEW : JasminXT Syntax (since 2.0)</a>
++<dd>This document describes the additions to the Jasmin language since version 1.1. JasminXT is an extension of the Jasmin language, so if you are new to Jasmin you should first read the user guide.<p>
++
++<dt>
+ <a href = "guide.html">Jasmin User Guide</a>
+ <dd>a brief user guide for using Jasmin.<p>
+
+Binary files jasmin-2.4/jasmin.jar and jasmin-2.4-new//jasmin.jar differ