summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuflone2015-06-13 17:59:24 +0200
committerMuflone2015-06-13 17:59:24 +0200
commit20b16be635b36d2825eef1d568cd9d2718846841 (patch)
tree7c55b5ef4fe2e67e9aa3bf34e61b1abcc0388e17
downloadaur-20b16be635b36d2825eef1d568cd9d2718846841.tar.gz
Initial import
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD68
-rwxr-xr-xtn5250j4
-rw-r--r--tn5250j.desktop9
-rw-r--r--tn5250j.install12
5 files changed, 123 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eec9950eb09
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+pkgbase = tn5250j
+ pkgdesc = 5250 terminal emulator for iSeries and AS/400 written in Java
+ pkgver = 0.7.5
+ pkgrel = 1
+ url = http://tn5250j.sourceforge.net/
+ install = tn5250j.install
+ arch = any
+ license = GPL
+ depends = bash
+ depends = java-runtime
+ depends = hicolor-icon-theme
+ depends = gtk-update-icon-cache
+ depends = desktop-file-utils
+ optdepends = tn5250j-plugin-itext: to convert the spool texts in PDF
+ optdepends = tn5250j-plugin-jtopen: to export spool and data files
+ optdepends = tn5250j-plugin-jython: to execute Python scripts inside tn5250j
+ optdepends = tn5250j-plugin-kunststoff: to apply the Kunststoff look and feel
+ optdepends = tn5250j-plugin-log4j: to enable a more detailed logging
+ optdepends = tn5250j-plugin-mail: to send email messages for exported data or screenshots
+ source = http://sourceforge.net/projects/tn5250j/files/tn5250j/0.7.5/tn5250j-0.7.5-full-bin.zip
+ source = tn5250j.svg::http://sourceforge.net/p/tn5250j/code/1229/tree/branches/new-tabs-jse1.6/resources/tn5250j-icon.svg?format=raw
+ source = tn5250j
+ source = tn5250j.desktop
+ sha256sums = 158a16a16df46c97f76cfd6f70ed2d37b0c9a983824ddd42294ee963cbb11afb
+ sha256sums = 9ecf2b4714fe457bdc0edd8cc10db6d55b7e0c86ba85b0f3f7a49fa6159a5d57
+ sha256sums = 02ae481923b7f94b4852a5f706b97086245d2fa37aed4c5934dd77d38cf0d5de
+ sha256sums = ba0fc30eab33ead695cffdba329dbadf8d05f67adac9a34fa905827a60421fcd
+
+pkgname = tn5250j
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2bc3af577a1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,68 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: Gino Pezzin <pezzin@gmail.com>
+pkgname=tn5250j
+pkgver=0.7.5
+pkgrel=1
+pkgdesc="5250 terminal emulator for iSeries and AS/400 written in Java"
+url="http://tn5250j.sourceforge.net/"
+arch=('any')
+license=('GPL')
+depends=('bash' 'java-runtime' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'desktop-file-utils')
+optdepends=('tn5250j-plugin-itext: to convert the spool texts in PDF'
+ 'tn5250j-plugin-jtopen: to export spool and data files'
+ 'tn5250j-plugin-jython: to execute Python scripts inside tn5250j'
+ 'tn5250j-plugin-kunststoff: to apply the Kunststoff look and feel'
+ 'tn5250j-plugin-log4j: to enable a more detailed logging'
+ 'tn5250j-plugin-mail: to send email messages for exported data or screenshots')
+source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}-full-bin.zip"
+ "${pkgname}.svg"::"http://sourceforge.net/p/${pkgname}/code/1229/tree/branches/new-tabs-jse1.6/resources/tn5250j-icon.svg?format=raw"
+ "${pkgname}"
+ "${pkgname}.desktop")
+sha256sums=('158a16a16df46c97f76cfd6f70ed2d37b0c9a983824ddd42294ee963cbb11afb'
+ '9ecf2b4714fe457bdc0edd8cc10db6d55b7e0c86ba85b0f3f7a49fa6159a5d57'
+ '02ae481923b7f94b4852a5f706b97086245d2fa37aed4c5934dd77d38cf0d5de'
+ 'ba0fc30eab33ead695cffdba329dbadf8d05f67adac9a34fa905827a60421fcd')
+install="${pkgname}.install"
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # Copy (as rename) some icons
+ cp -f "tn5250j-128.png" "tn5250j-128x128.png"
+ cp -f "tn5250j-256.png" "tn5250j-256x256.png"
+ cp -f "tn5250j-512.png" "tn5250j-512x512.png"
+}
+
+package() {
+ # Install desktop file
+ install -m 755 -d "${pkgdir}/usr/share/applications"
+ install -m 755 -t "${pkgdir}/usr/share/applications" "${pkgname}.desktop"
+ # Install startup script
+ install -m 755 -d "${pkgdir}/usr/bin"
+ install -m 755 -t "${pkgdir}/usr/bin" "${pkgname}"
+
+ cd "${pkgname}-${pkgver}"
+ # Install java packages
+ install -m 755 -d "${pkgdir}/usr/share/java/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" "${pkgname}.jar"
+ # Install icons
+ for _size in 16 32 48 128 256 512
+ do
+ install -m 644 -D "${pkgname}-${_size}x${_size}.png" "${pkgdir}/usr/share/icons/hicolor/${_size}x${_size}/apps/${pkgname}.png"
+ done
+ install -m 644 -D "${srcdir}/${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
+ # Install documentation files
+ install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "applet.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "CHANGELOG.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "e-mail.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "filetransfers.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "macros.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "My5250App.html"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "My5250AppPlugin.html"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "My5250SSLApplet.php"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "My5250SSLindex.php"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "readme.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "scripting.txt"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "SSLinstructions.html"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" "tn5250jLaunchExternalProgram.txt"
+}
diff --git a/tn5250j b/tn5250j
new file mode 100755
index 00000000000..0f5051357b1
--- /dev/null
+++ b/tn5250j
@@ -0,0 +1,4 @@
+#!/bin/sh
+TN5250J_HOME='/usr/share/java/tn5250j'
+JAVA_OPTS='-Dawt.useSystemAAFontSettings=on'
+java ${JAVA_OPTS} -jar "${TN5250J_HOME}/tn5250j.jar"
diff --git a/tn5250j.desktop b/tn5250j.desktop
new file mode 100644
index 00000000000..3b092c1f69f
--- /dev/null
+++ b/tn5250j.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=tn5250j
+Comment=A modern and rich 5250 terminal emulator for iSeries and AS/400
+Exec=tn5250j
+Icon=tn5250j
+Terminal=false
+Type=Application
+Categories=Application;Network;
+StartupWMClass=org-tn5250j-My5250
diff --git a/tn5250j.install b/tn5250j.install
new file mode 100644
index 00000000000..71627fa6421
--- /dev/null
+++ b/tn5250j.install
@@ -0,0 +1,12 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}