diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 61 | ||||
-rw-r--r-- | tn5250j.install | 12 |
3 files changed, 39 insertions, 53 deletions
@@ -1,30 +1,25 @@ 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 + pkgver = 0.7.6 + pkgrel = 3 + url = http://tn5250j.org/ arch = any - license = GPL + license = GPL2 + makedepends = ant 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-0.7.6.tar.gz::https://github.com/tn5250j/tn5250j/archive/refs/tags/0.7.6.tar.gz source = tn5250j source = tn5250j.desktop - sha256sums = 158a16a16df46c97f76cfd6f70ed2d37b0c9a983824ddd42294ee963cbb11afb - sha256sums = 9ecf2b4714fe457bdc0edd8cc10db6d55b7e0c86ba85b0f3f7a49fa6159a5d57 + sha256sums = 45c009695cde613d9b419970277ecb010604705ae2deb52a2e45bc4c105053ba sha256sums = 02ae481923b7f94b4852a5f706b97086245d2fa37aed4c5934dd77d38cf0d5de sha256sums = ba0fc30eab33ead695cffdba329dbadf8d05f67adac9a34fa905827a60421fcd pkgname = tn5250j - @@ -1,35 +1,41 @@ # Maintainer: Muflone http://www.muflone.com/contacts/english/ # Contributor: Gino Pezzin <pezzin@gmail.com> pkgname=tn5250j -pkgver=0.7.5 -pkgrel=1 +pkgver=0.7.6 +pkgrel=3 pkgdesc="5250 terminal emulator for iSeries and AS/400 written in Java" -url="http://tn5250j.sourceforge.net/" +url="http://tn5250j.org/" arch=('any') -license=('GPL') -depends=('bash' 'java-runtime' 'hicolor-icon-theme' 'gtk-update-icon-cache' 'desktop-file-utils') +license=('GPL2') +depends=('bash' 'java-runtime' 'hicolor-icon-theme') +makedepends=('ant') 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" +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/${pkgname}/${pkgname}/archive/refs/tags/${pkgver}.tar.gz" "${pkgname}" "${pkgname}.desktop") -sha256sums=('158a16a16df46c97f76cfd6f70ed2d37b0c9a983824ddd42294ee963cbb11afb' - '9ecf2b4714fe457bdc0edd8cc10db6d55b7e0c86ba85b0f3f7a49fa6159a5d57' +sha256sums=('45c009695cde613d9b419970277ecb010604705ae2deb52a2e45bc4c105053ba' '02ae481923b7f94b4852a5f706b97086245d2fa37aed4c5934dd77d38cf0d5de' 'ba0fc30eab33ead695cffdba329dbadf8d05f67adac9a34fa905827a60421fcd') -install="${pkgname}.install" prepare() { cd "${pkgname}-${pkgver}" + # Fix Java version + sed -i 's/compile.source" value="1.6"/compile.source" value="1.8"/' build.xml + sed -i 's/compile.target" value="1.6"/compile.target" value="1.8"/' build.xml # 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" + cp -f "resources/tn5250j-128.png" "resources/tn5250j-128x128.png" + cp -f "resources/tn5250j-256.png" "resources/tn5250j-256x256.png" + cp -f "resources/tn5250j-512.png" "resources/tn5250j-512x512.png" +} + +build() { + cd "${pkgname}-${pkgver}" + ant compile } package() { @@ -40,29 +46,26 @@ package() { install -m 755 -d "${pkgdir}/usr/bin" install -m 755 -t "${pkgdir}/usr/bin" "${pkgname}" + # Package cd "${pkgname}-${pkgver}" + ant package # Install java packages install -m 755 -d "${pkgdir}/usr/share/java/${pkgname}" - install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" "${pkgname}.jar" + install -m 644 -t "${pkgdir}/usr/share/java/${pkgname}" "build/${pkgname}.jar" + # Install sample files + install -m 755 -d "${pkgdir}/usr/share/${pkgname}" + cp -r scripts "${pkgdir}/usr/share/${pkgname}" + # Install resources + cd "resources" # 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 -m 644 -D "${pkgname}-icon.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" + install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}" + install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" \ + *.txt *.policy *.properties *.html *.php *.ssl } + diff --git a/tn5250j.install b/tn5250j.install deleted file mode 100644 index 71627fa64211..000000000000 --- a/tn5250j.install +++ /dev/null @@ -1,12 +0,0 @@ -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 -} |