summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Hicken2016-06-22 16:26:45 +0200
committerJan Hicken2016-06-22 16:26:45 +0200
commite6813436f7db1de9e251e8311759e83af03c5bc5 (patch)
treeeecca4758483378d5ff03251490986e435e7af81
downloadaur-e6813436f7db1de9e251e8311759e83af03c5bc5.tar.gz
Initial commit.
-rw-r--r--.SRCINFO99
-rw-r--r--.gitignore10
-rw-r--r--PKGBUILD190
-rw-r--r--compilestub.sh10
-rw-r--r--fix-desktop-file.patch10
-rw-r--r--jcompile.sh9
-rw-r--r--loadrenew.sh13
-rw-r--r--makestub.sh10
-rw-r--r--renew.sh22
9 files changed, 373 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a522e6aeba6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,99 @@
+# Generated by mksrcinfo v8
+# Wed Jun 22 14:24:31 UTC 2016
+pkgbase = renew
+ pkgdesc = The Reference Net Workshop
+ pkgver = 2.5
+ pkgrel = 1
+ url = http://renew.de/
+ arch = any
+ groups = renew
+ license = LGPL
+ depends = java-environment>=7
+ depends = hicolor-icon-theme
+ depends = bash
+ noextract = fa-base-2.5_0.7.jar
+ noextract = faformalism-2.5_0.1.jar
+ noextract = fs-2.5_1.3.jar
+ noextract = guiprompt-2.5_1.3.jar
+ noextract = imagenetdiff-2.5_0.5.jar
+ noextract = refactoring-2.5_0.3.jar
+ noextract = tablet-2.5_0.3.jar
+ noextract = xrn-2.5_0.1.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/renew2.5base.zip
+ source = fix-desktop-file.patch
+ source = renew.sh
+ source = compilestub.sh
+ source = makestub.sh
+ source = loadrenew.sh
+ source = jcompile.sh
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/fa-base-2.5_0.7.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/faformalism-2.5_0.1.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/fs-2.5_1.3.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/guiprompt-2.5_1.3.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/imagenetdiff-2.5_0.5.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/jgit-2.5_4.0.0.zip
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/refactoring-2.5_0.3.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/svn-2.5_1.8.8.zip
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/tablet-2.5_0.3.jar
+ source = http://www.informatik.uni-hamburg.de/TGI/renew/2.5/plugins2.5/xrn-2.5_0.1.jar
+ sha256sums = facc2726120c52fecb84540b1d53d20513a4fe2d0d57c547c624072a79d9797b
+ sha256sums = a4ec6bfc6eb1770a9eacf0791f7c737d3559efbb98a4caecee030af924108d59
+ sha256sums = dbe0b1ee17634d98d0b8b8ef7f862d6b56421ae6d92867800e4a00cf0ff3d17d
+ sha256sums = e33ece1a400120aa4a11915f881b413adc6aa958be889e2fb7a55aaf44ab4b60
+ sha256sums = 9ad46fc4ecf80d7ceea5afc4f95c91d0995f605315075d4735e6f0980509082d
+ sha256sums = f2da435e28be3424e13147681854173f193e9e1a34f7e5217ecbae503012e073
+ sha256sums = 96cf02bcf6e262e42740602bdbf893a0d0902f385035a20c9baf41659d955e8a
+ sha256sums = 1fb3721546f20053e9914b49f23badae7363af757a79b06f4d76f8ce6bf8a93a
+ sha256sums = 3c95d6fd05b6c4b33184dfa94b11b3376ed3593b622c042fe1db484c6da357e5
+ sha256sums = cb2370cbc0e9c379985dde604efde934ed8a0d1e882a26c6a50a8c335fa17641
+ sha256sums = f0d28287a7310b668fcf00421d6147ac6b59d3147d7ebe03fbf9d2d9d2a60584
+ sha256sums = f42fe37dc61613b372700906b57db11eebd3c3cc36de0d7eb5451f82d25f6062
+ sha256sums = 7b1b4cada39029333e705691ce736565574f12ebede282c8c28df18c22ce5b29
+ sha256sums = 722253392cd0940eb2f6d9a219a106f50efc6d3937977f1ab72f896656dd838d
+ sha256sums = 959a2b5d3ff8bd6f2bd9fdbbf1217a56f49f5b90f3094636a44635002c6058b6
+ sha256sums = 45fa21c98267d8b74d90e7290d235b22cce855163cca919fda838b5c122ff183
+ sha256sums = 3d67e03f6e5cea7b9a2ecdf90f7ff1791ad245a7671de23cad068e8f7c637b11
+
+pkgname = renew-base
+
+pkgname = renew-fa-base
+ pkgdesc = The Reference Net Workshop - Finite Automata Plug-in
+ depends = renew-base
+
+pkgname = renew-faformalism
+ pkgdesc = The Reference Net Workshop - FAFormalism Plug-in
+ depends = renew-base
+
+pkgname = renew-fs
+ pkgdesc = The Reference Net Workshop - Feature Structure Plug-in
+ depends = renew-base
+
+pkgname = renew-guiprompt
+ pkgdesc = The Reference Net Workshop - GUI Prompt Plug-in
+ depends = renew-base
+
+pkgname = renew-imagenetdiff
+ pkgdesc = The Reference Net Workshop - ImageNetDiff Plug-in
+ depends = imagemagick
+ depends = renew-base
+
+pkgname = renew-jgit
+ pkgdesc = The Reference Net Workshop - JGitLibs Plug-in
+ depends = renew-base
+
+pkgname = renew-refactoring
+ pkgdesc = The Reference Net Workshop - Refactoring Plug-in
+ depends = renew-base
+
+pkgname = renew-svn
+ pkgdesc = The Reference Net Workshop - SvnLibs Plug-in
+ depends = renew-base
+
+pkgname = renew-tablet
+ pkgdesc = The Reference Net Workshop - Tablet Plug-in
+ depends = renew-base
+
+pkgname = renew-xrn
+ pkgdesc = The Reference Net Workshop - XRN Plug-in
+ depends = renew-base
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6a3d13ea625
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+# makepkg folders
+src/
+pkg/
+
+# built packages
+*.pkg.*
+
+# sources
+*.jar
+*.zip
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..73696321708
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,190 @@
+# Maintainer: Jan Hicken <firstname [dot] lastname [at] informatik [dot] uni-hamburg [dot] de>
+pkgbase=renew
+pkgname=("${pkgbase}-base"
+ "${pkgbase}-fa-base"
+ "${pkgbase}-faformalism"
+ "${pkgbase}-fs"
+ "${pkgbase}-guiprompt"
+ "${pkgbase}-imagenetdiff"
+ "${pkgbase}-jgit"
+ "${pkgbase}-refactoring"
+ "${pkgbase}-svn"
+ "${pkgbase}-tablet"
+ "${pkgbase}-xrn")
+pkgver=2.5
+pkgrel=1
+declare -Ag _pkgvers
+_pkgvers[${pkgbase}-base]=$pkgver
+_pkgvers[${pkgbase}-fa-base]=0.7
+_pkgvers[${pkgbase}-faformalism]=0.1
+_pkgvers[${pkgbase}-fs]=1.3
+_pkgvers[${pkgbase}-guiprompt]=1.3
+_pkgvers[${pkgbase}-imagenetdiff]=0.5
+_pkgvers[${pkgbase}-jgit]=4.0.0
+_pkgvers[${pkgbase}-refactoring]=0.3
+_pkgvers[${pkgbase}-svn]=1.8.8
+_pkgvers[${pkgbase}-tablet]=0.3
+_pkgvers[${pkgbase}-xrn]=0.1
+pkgdesc='The Reference Net Workshop'
+arch=('any')
+url='http://renew.de/'
+license=('LGPL')
+groups=("$pkgbase")
+depends=('java-environment>=7' 'hicolor-icon-theme' 'bash')
+_baseurl="http://www.informatik.uni-hamburg.de/TGI/${pkgbase}/${pkgver}"
+source=("$_baseurl/${pkgbase}${pkgver}base.zip"
+ 'fix-desktop-file.patch'
+ 'renew.sh'
+ 'compilestub.sh'
+ 'makestub.sh'
+ 'loadrenew.sh'
+ 'jcompile.sh')
+noextract=()
+for subpkg in ${pkgname[*]}; do
+ # skip base package
+ if [[ $subpkg == ${pkgbase}-base ]]; then
+ continue
+ fi
+
+ if [[ $subpkg == ${pkgbase}-jgit || $subpkg == ${pkgbase}-svn ]]; then
+ local filename="${subpkg/renew-/}-${pkgver}_${_pkgvers[$subpkg]}.zip"
+ else
+ local filename="${subpkg/renew-/}-${pkgver}_${_pkgvers[$subpkg]}.jar"
+ noextract+=("$filename")
+ fi
+
+ source+=("$_baseurl/plugins${pkgver}/$filename")
+done
+sha256sums=('facc2726120c52fecb84540b1d53d20513a4fe2d0d57c547c624072a79d9797b'
+ 'a4ec6bfc6eb1770a9eacf0791f7c737d3559efbb98a4caecee030af924108d59'
+ 'dbe0b1ee17634d98d0b8b8ef7f862d6b56421ae6d92867800e4a00cf0ff3d17d'
+ 'e33ece1a400120aa4a11915f881b413adc6aa958be889e2fb7a55aaf44ab4b60'
+ '9ad46fc4ecf80d7ceea5afc4f95c91d0995f605315075d4735e6f0980509082d'
+ 'f2da435e28be3424e13147681854173f193e9e1a34f7e5217ecbae503012e073'
+ '96cf02bcf6e262e42740602bdbf893a0d0902f385035a20c9baf41659d955e8a'
+ '1fb3721546f20053e9914b49f23badae7363af757a79b06f4d76f8ce6bf8a93a'
+ '3c95d6fd05b6c4b33184dfa94b11b3376ed3593b622c042fe1db484c6da357e5'
+ 'cb2370cbc0e9c379985dde604efde934ed8a0d1e882a26c6a50a8c335fa17641'
+ 'f0d28287a7310b668fcf00421d6147ac6b59d3147d7ebe03fbf9d2d9d2a60584'
+ 'f42fe37dc61613b372700906b57db11eebd3c3cc36de0d7eb5451f82d25f6062'
+ '7b1b4cada39029333e705691ce736565574f12ebede282c8c28df18c22ce5b29'
+ '722253392cd0940eb2f6d9a219a106f50efc6d3937977f1ab72f896656dd838d'
+ '959a2b5d3ff8bd6f2bd9fdbbf1217a56f49f5b90f3094636a44635002c6058b6'
+ '45fa21c98267d8b74d90e7290d235b22cce855163cca919fda838b5c122ff183'
+ '3d67e03f6e5cea7b9a2ecdf90f7ff1791ad245a7671de23cad068e8f7c637b11')
+
+package_renew-base() {
+ install -D compilestub.sh "${pkgdir}/usr/bin/compilestub"
+ install -D jcompile.sh "${pkgdir}/usr/bin/jcompile"
+ install -D loadrenew.sh "${pkgdir}/usr/bin/loadrenew"
+ install -D makestub.sh "${pkgdir}/usr/bin/makestub"
+ install -D renew.sh "${pkgdir}/usr/bin/renew"
+
+ cd ${pkgbase}${pkgver}
+
+ install -Dm 0644 bin/unix/freedesktop/Renew.desktop "${pkgdir}/usr/share/applications/${pkgbase}.desktop"
+ install -Dm 0644 bin/unix/freedesktop/renew.xml "${pkgdir}/usr/share/mime/packages/${pkgbase}.xml"
+
+ install -d "${pkgdir}/usr/share/icons/hicolor"
+ cp -dR bin/unix/freedesktop/icons/* "${pkgdir}/usr/share/icons/hicolor/"
+ find "${pkgdir}/usr/share/icons/hicolor" -type f -print0 | xargs -0 chmod 0644
+
+ install -d "${pkgdir}/usr/share/java/${pkgbase}"
+ cp -dR config libs loader.jar plugins "${pkgdir}/usr/share/java/${pkgbase}/"
+ find "${pkgdir}/usr/share/java/${pkgbase}" -type f -print0 | xargs -0 chmod 0644
+
+ install -d "${pkgdir}/usr/share/doc/${pkgbase}"
+ cp -dR doc/* samples "${pkgdir}/usr/share/doc/${pkgbase}/"
+ find "${pkgdir}/usr/share/doc/${pkgbase}" -type f -print0 | xargs -0 chmod 0644
+}
+
+package_renew-fa-base() {
+ pkgdesc='The Reference Net Workshop - Finite Automata Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-faformalism() {
+ pkgdesc='The Reference Net Workshop - FAFormalism Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-fs() {
+ pkgdesc='The Reference Net Workshop - Feature Structure Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-guiprompt() {
+ pkgdesc='The Reference Net Workshop - GUI Prompt Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-imagenetdiff() {
+ pkgdesc='The Reference Net Workshop - ImageNetDiff Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=('imagemagick' "${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-jgit() {
+ pkgdesc='The Reference Net Workshop - JGitLibs Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ install -d "${pkgdir}/usr/share/java/${pkgbase}/plugins"
+ cp -dR "${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}" "${pkgdir}/usr/share/java/${pkgbase}/plugins"
+}
+
+package_renew-refactoring() {
+ pkgdesc='The Reference Net Workshop - Refactoring Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-svn() {
+ pkgdesc='The Reference Net Workshop - SvnLibs Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ install -d "${pkgdir}/usr/share/java/${pkgbase}/plugins"
+ cp -dR "${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}" "${pkgdir}/usr/share/java/${pkgbase}/plugins"
+}
+
+package_renew-tablet() {
+ pkgdesc='The Reference Net Workshop - Tablet Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+
+package_renew-xrn() {
+ pkgdesc='The Reference Net Workshop - XRN Plug-in'
+ pkgver=${_pkgvers[$pkgname]}
+ depends=("${pkgbase}-base")
+
+ local filename="${pkgname/renew-/}-${_pkgvers[${pkgbase}-base]}_${pkgver}.jar"
+ install -Dm 0644 "${filename}" "${pkgdir}/usr/share/java/${pkgbase}/plugins/${filename}"
+}
+# vim:set ft=sh ts=2 sw=2 et:
diff --git a/compilestub.sh b/compilestub.sh
new file mode 100644
index 00000000000..3604dd4a0f1
--- /dev/null
+++ b/compilestub.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+shopt -s globstar
+
+RENEW_HOME=/usr/share/java/renew
+STUB_COMPILER=de.renew.call.StubCompiler
+
+printf -v CLASSPATH '%s:' $RENEW_HOME/**/*.jar
+export CLASSPATH
+
+exec java $STUB_COMPILER $@
diff --git a/fix-desktop-file.patch b/fix-desktop-file.patch
new file mode 100644
index 00000000000..5dea1a8dd91
--- /dev/null
+++ b/fix-desktop-file.patch
@@ -0,0 +1,10 @@
+--- renew2.4.3/bin/unix/freedesktop/Renew.desktop
+@@ -5,7 +5,7 @@
+ Comment=Reference Net Workshop
+ Comment[de]=Referenznetzeditor und -simulator
+ Categories=Development;IDE;VectorGraphics;Graphics;2DGraphics;Java;
+-Exec=loadrenew %F
++Exec=renew %F
+ Icon=renew
+ MimeType=application/x-renew;application/x-renew-net;application/x-renew-drawing;application/x-renew-interactiondiagram;application/x-renew-autosave;application/x-renew-lola;application/x-renew-state;application/pnml+xml;application/x-renew-sns;
+ Terminal=true
diff --git a/jcompile.sh b/jcompile.sh
new file mode 100644
index 00000000000..2509230507d
--- /dev/null
+++ b/jcompile.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+shopt -s globstar
+
+RENEW_HOME=/usr/share/java/renew
+
+printf -v CLASSPATH '%s:' $RENEW_HOME/**/*.jar
+export CLASSPATH
+
+exec javac $@
diff --git a/loadrenew.sh b/loadrenew.sh
new file mode 100644
index 00000000000..0fce1def691
--- /dev/null
+++ b/loadrenew.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+shopt -s globstar
+
+RENEW_HOME=/usr/share/java/renew
+DRAWING_LOAD_CLIENT=CH.ifa.draw.application.DrawingLoadClient
+
+printf -v CLASSPATH '%s:' $RENEW_HOME/**/*.jar
+export CLASSPATH
+
+java $DRAWING_LOAD_CLIENT $@
+if [[ $? -gt 0 ]]; then
+ exec renew $@
+fi
diff --git a/makestub.sh b/makestub.sh
new file mode 100644
index 00000000000..1e63a60032a
--- /dev/null
+++ b/makestub.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+shopt -s globstar
+
+RENEW_HOME=/usr/share/java/renew
+STUB_GENERATOR=de.renew.call.StubGenerator
+
+printf -v CLASSPATH '%s:' $RENEW_HOME/**/*.jar
+export CLASSPATH
+
+exec java $STUB_GENERATOR $@
diff --git a/renew.sh b/renew.sh
new file mode 100644
index 00000000000..1412ce99c12
--- /dev/null
+++ b/renew.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+JAR=/usr/share/java/renew/loader.jar
+
+# default values
+[[ -z $NETPATH ]] && NETPATH=.
+[[ -z $CLASSPATH ]] && CLASSPATH=.
+
+# logs home
+if [[ $XDG_CACHE_HOME ]]; then
+ LOGS_HOME=$XDG_CACHE_HOME/renewlogs
+else
+ LOGS_HOME=~/.cache/renewlogs
+fi
+
+export CLASSPATH
+exec java \
+ -Xmx200M \
+ -Dde.renew.netPath="$NETPATH" \
+ -Dde.renew.classPath="$CLASSPATH" \
+ -Dlogs.home="$LOGS_HOME" \
+ -jar "$JAR" \
+ gui $@