diff options
author | Muflone | 2015-06-13 17:59:23 +0200 |
---|---|---|
committer | Muflone | 2015-06-13 17:59:23 +0200 |
commit | a9e625ed20f96081738caca8f079ad203b00f700 (patch) | |
tree | bb7e80ce11cbf8fbcae449dd3420ffc93c022ad1 | |
download | aur-a9e625ed20f96081738caca8f079ad203b00f700.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | rpgng | 23 | ||||
-rw-r--r-- | rpgng.desktop | 10 | ||||
-rw-r--r-- | rpgng.install | 19 | ||||
-rw-r--r-- | rpgng.png | bin | 0 -> 3114 bytes | |||
-rw-r--r-- | rpgng.sh | 23 |
7 files changed, 133 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ff9b1f5b4a5d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = rpgng + pkgdesc = RPG Next Gen Editor is a lightweight RPG (Report Program Generator) editor based on the Eclipse platform. + pkgver = 0.5.5 + pkgrel = 1 + url = http://rpgnextgen.sourceforge.net/ + install = rpgng.install + arch = i686 + arch = x86_64 + license = GPL3 + depends = java-environment + depends = libxext + depends = libxrender + depends = fontconfig + depends = xdg-utils + source = http://downloads.sourceforge.net/project/rpgnextgen/rpgng/rpgng-0.5/rpgng-0.5.5-linux.gtk.x86.zip + source = rpgng.sh + source = rpgng.png + source = rpgng.desktop + md5sums = 86f430c34be140b230ec50ff034bcadb + md5sums = 7aef7fd3d1cdd55593fdffe3bf31afcb + md5sums = 38ef35d53c9d4fbd60e2645377aaeaf7 + md5sums = 625bfd5c838cfb11c75ab609764163a5 + +pkgname = rpgng + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..173b887c7808 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ + +pkgname=rpgng +pkgver=0.5.5 +pkgrel=1 +pkgdesc="RPG Next Gen Editor is a lightweight RPG (Report Program Generator) editor based on the Eclipse platform." +arch=('i686' 'x86_64') +url="http://rpgnextgen.sourceforge.net/" +license=('GPL3') +depends=('java-environment' 'libxext' 'libxrender' 'fontconfig' 'xdg-utils') +source=("http://downloads.sourceforge.net/project/rpgnextgen/${pkgname}/${pkgname}-0.5/${pkgname}-${pkgver}-linux.gtk.x86.zip" + "${pkgname}.sh" + "${pkgname}.png" + "${pkgname}.desktop") +md5sums=('86f430c34be140b230ec50ff034bcadb' + '7aef7fd3d1cdd55593fdffe3bf31afcb' + '38ef35d53c9d4fbd60e2645377aaeaf7' + '625bfd5c838cfb11c75ab609764163a5') +if [ "$CARCH" = 'x86_64' ]; then + source[0]="http://downloads.sourceforge.net/project/rpgnextgen/${pkgname}/${pkgname}-0.5/${pkgname}-${pkgver}-linux.gtk.x86_64.zip" + md5sums[0]='86424a8b6a903c7728f1fffa37851dff' +fi +install="${pkgname}.install" + +package() { + install -m 755 -D "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}" + + install -m 755 -d "${pkgdir}/usr/lib/${pkgname}" + cp -r "${srcdir}/${pkgname}" "${pkgdir}/usr/lib" + + install -m 644 -D "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" + install -m 755 -D "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" +} diff --git a/rpgng b/rpgng new file mode 100644 index 000000000000..f239c3958b89 --- /dev/null +++ b/rpgng @@ -0,0 +1,23 @@ +#!/bin/bash + +# Here I avoid to use the default $HOME/workspace folder +# which conflicts with the default Eclipse workspace + +# Check if the user has provided the -data argument +while [[ $# > 0 ]]; do + if [ "$1" == "-data" ] + then + shift + WORKSPACE="$1" + fi + shift +done + +# Check if no workspace argument was provided +if [ -z "$WORKSPACE" ] +then + WORKSPACE="$HOME/.local/share/rpgng" + echo "Unspecified -data argument, assuming $WORKSPACE as workspace." +fi + +/usr/lib/rpgng/rpgng -data "$WORKSPACE" diff --git a/rpgng.desktop b/rpgng.desktop new file mode 100644 index 000000000000..5166b69ee0ba --- /dev/null +++ b/rpgng.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=RPG Next Gen +GenericName=RPG Next Gen +Comment=RPG Next Gen Editor based on Eclipse +Exec=rpgng +Terminal=false +Type=Application +Icon=rpgng +Categories=Development; + diff --git a/rpgng.install b/rpgng.install new file mode 100644 index 000000000000..92147d875018 --- /dev/null +++ b/rpgng.install @@ -0,0 +1,19 @@ +do_install() { + xdg-icon-resource forceupdate + xdg-desktop-menu forceupdate + update-desktop-database -q +} + +post_install() { + do_install + echo "If -data argument is unspecified, the default workspace is located under \$HOME/.local/share/rpgng" +} + +post_update() { + post_install +} + +post_remove() { + do_install +} + diff --git a/rpgng.png b/rpgng.png Binary files differnew file mode 100644 index 000000000000..a38589b842b1 --- /dev/null +++ b/rpgng.png diff --git a/rpgng.sh b/rpgng.sh new file mode 100644 index 000000000000..f239c3958b89 --- /dev/null +++ b/rpgng.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Here I avoid to use the default $HOME/workspace folder +# which conflicts with the default Eclipse workspace + +# Check if the user has provided the -data argument +while [[ $# > 0 ]]; do + if [ "$1" == "-data" ] + then + shift + WORKSPACE="$1" + fi + shift +done + +# Check if no workspace argument was provided +if [ -z "$WORKSPACE" ] +then + WORKSPACE="$HOME/.local/share/rpgng" + echo "Unspecified -data argument, assuming $WORKSPACE as workspace." +fi + +/usr/lib/rpgng/rpgng -data "$WORKSPACE" |