summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeaDDooMER2015-09-06 20:33:27 +0300
committerDeaDDooMER2015-09-06 20:33:27 +0300
commit43790fa4487b2def8de7d44142ac132a721ba07b (patch)
tree18a1abed1d3cd2683d9ceea31d4cf8258cdf4baa
downloadaur-43790fa4487b2def8de7d44142ac132a721ba07b.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD33
-rw-r--r--config2.xml19
-rw-r--r--microemulator.desktop12
-rw-r--r--microemulator.launcher17
5 files changed, 104 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..20e80f57833
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = microemulator
+ pkgdesc = This is Java 2 Micro Edition (J2ME) CLDC/MIDP Emulator.
+ pkgver = 2.0.4
+ pkgrel = 1
+ url = http://www.microemu.org/
+ arch = any
+ license = GPL
+ depends = java-runtime
+ source = http://microemu.googlecode.com/files/microemulator-2.0.4.zip
+ source = microemulator.launcher
+ source = microemulator.desktop
+ source = config2.xml
+ md5sums = d4a859a9aae5d90e25f11146abf1e27a
+ md5sums = c166cc61d77d21866f619f37db7e1d24
+ md5sums = 9dd770f276906360aa7a39fbbfff7d02
+ md5sums = c3f1035fa2fb2448e684dd8f4e689377
+ sha512sums = f67463d41b8dfce16bde8ee0e4155f6827d57430b183bb11dafa82aa017c349fe13f94b57414592458c2cca34ab3c805c1be8f45d34e1f13ea10d4200ac046b6
+ sha512sums = 8dbb95e178626ee6317de44698ba976d2d2de5084c8cb59a9d358fd49d446982228fdaf8bcfb6de8fe8becf3ae0becf712a999345f45a169bc24aa76ca937388
+ sha512sums = 35207eaf12158b1e90a157cdcf22538344da7de57e26cfd520be6d6776cf58250a87e3098ad3444116bd976fe26062cd7b6cfedac33da398aa6387ab9fefeb7c
+ sha512sums = 29053c1111a0dd147ef5d55bd70a0675ecdd6f5d54951b6ddf5ef35e9ddebf38acf47506a245907c6f7820987d496e1aeadd3d47b7be101ed70a5dc4ece23eed
+
+pkgname = microemulator
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c5f49bdd13
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+pkgname=microemulator
+pkgver=2.0.4
+pkgrel=1
+arch=('any')
+pkgdesc="This is Java 2 Micro Edition (J2ME) CLDC/MIDP Emulator."
+url="http://www.microemu.org/"
+license=('GPL')
+depends=('java-runtime')
+source=(http://microemu.googlecode.com/files/$pkgname-$pkgver.zip
+ microemulator.launcher microemulator.desktop config2.xml)
+
+md5sums=('d4a859a9aae5d90e25f11146abf1e27a'
+ 'c166cc61d77d21866f619f37db7e1d24'
+ '9dd770f276906360aa7a39fbbfff7d02'
+ 'c3f1035fa2fb2448e684dd8f4e689377')
+sha512sums=('f67463d41b8dfce16bde8ee0e4155f6827d57430b183bb11dafa82aa017c349fe13f94b57414592458c2cca34ab3c805c1be8f45d34e1f13ea10d4200ac046b6'
+ '8dbb95e178626ee6317de44698ba976d2d2de5084c8cb59a9d358fd49d446982228fdaf8bcfb6de8fe8becf3ae0becf712a999345f45a169bc24aa76ca937388'
+ '35207eaf12158b1e90a157cdcf22538344da7de57e26cfd520be6d6776cf58250a87e3098ad3444116bd976fe26062cd7b6cfedac33da398aa6387ab9fefeb7c'
+ '29053c1111a0dd147ef5d55bd70a0675ecdd6f5d54951b6ddf5ef35e9ddebf38acf47506a245907c6f7820987d496e1aeadd3d47b7be101ed70a5dc4ece23eed')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ install -d -m0755 "$pkgdir"/usr/share/java/$pkgname/
+ cp -R $pkgname.jar devices lib "$pkgdir"/usr/share/java/$pkgname/
+ cp $srcdir/config2.xml "$pkgdir"/usr/share/java/$pkgname
+ install -Dm755 ../$pkgname.launcher "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 ../$pkgname.desktop \
+ "$pkgdir"/usr/share/applications/$pkgname.desktop
+}
diff --git a/config2.xml b/config2.xml
new file mode 100644
index 00000000000..2242ddd9f9d
--- /dev/null
+++ b/config2.xml
@@ -0,0 +1,19 @@
+<config>
+ <devices>
+ <device>
+ <name>Large device</name>
+ <filename>microemu-device-large.jar</filename>
+ <descriptor>org/microemu/device/large/device.xml</descriptor>
+ </device>
+ <device>
+ <name>Minimum device</name>
+ <filename>microemu-device-minimum.jar</filename>
+ <descriptor>org/microemu/device/minimum/device.xml</descriptor>
+ </device>
+ <device>
+ <name>Resizable device</name>
+ <filename>microemu-device-resizable.jar</filename>
+ <descriptor>org/microemu/device/resizable/device.xml</descriptor>
+ </device>
+ </devices>
+</config>
diff --git a/microemulator.desktop b/microemulator.desktop
new file mode 100644
index 00000000000..13c44c3a682
--- /dev/null
+++ b/microemulator.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=microemulator
+GenericName=J2ME Emulator
+Comment=A J2ME Emulator
+Icon=java
+TryExec=/usr/bin/microemulator
+Exec=microemulator
+MimeType=text/vnd.sun.j2me.app-descriptor ;
+Categories=Emulator;Emulation;Java;Development;
+StartupNotify=false
diff --git a/microemulator.launcher b/microemulator.launcher
new file mode 100644
index 00000000000..b46cd2df1d1
--- /dev/null
+++ b/microemulator.launcher
@@ -0,0 +1,17 @@
+#!/bin/sh
+if [ ! -e "$HOME/.microemulator" ]
+then
+ mkdir "$HOME/.microemulator"
+fi
+if [ ! -e "$HOME/.microemulator/config2.xml" ]
+then
+ cp "/usr/share/java/microemulator/config2.xml" "$HOME/.microemulator"
+fi
+for i in microemu-device-large.jar microemu-device-minimum.jar microemu-device-resizable.jar
+do
+ if [ ! -e "$HOME/.microemulator/$i" ]
+ then
+ ln -s "/usr/share/java/microemulator/devices/$i" "$HOME/.microemulator"
+ fi
+done
+exec java -jar /usr/share/java/microemulator/microemulator.jar "$@"