summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5763767fb6cbcf6dd3b92e6b1dfaaaa0a82e3ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Mantas Mikul─Śnas <grawity@gmail.com>
# Contributor: Pierre Chapuis <catwell at archlinux dot us>

pkgname=gsi-sshterm
pkgver=0.91d
pkgrel=3
pkgdesc='Java Grid authentication program by the UK National Grid Service'
arch=('i686' 'x86_64')
url='http://wiki.ngs.ac.uk/index.php?title=GSI-SSHTerm'
license=('GPL')
depends=('java-runtime')
makedepends=('apache-ant')
source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
md5sums=('f692f19b5cd20cdef0f1245dcbd6b412')

build() {
  cd "sshtools"
  JAVA_HOME=/usr/lib/jvm/default ./make.sh
}

package() {
  cd "sshtools"

  mkdir -p "$pkgdir"/opt
  cp -r release/GSI-SSHTerm-$pkgver/ "$pkgdir"/opt/GSI-SSHTerm/

  mkdir -p "$pkgdir"/usr/bin
  printf '%s\n' \
    '#!/bin/sh'                                   \
    'export SSHTOOLS_HOME="/opt/GSI-SSHTerm"'     \
    'exec "$SSHTOOLS_HOME/bin/sshterm.sh" "$@"'   \
    > "$pkgdir"/usr/bin/gsi-sshterm
  chmod a+x "$pkgdir"/usr/bin/gsi-sshterm
}

# vim: ft=sh:ts=2:sw=2:et