summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f88c4e764a79aeaaf4cd96bddd6d4dd49f75cd1f (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
# Maintainer: Pierre Chapuis <catwell at archlinux dot us>

pkgname=gsi-sshterm
pkgver=0.91d
pkgrel=2
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 $srcdir/sshtools
  sh make.sh || return 1
  install -d $pkgdir/opt/ $pkgdir/usr/bin/
  cp -r release/GSI-SSHTerm-$pkgver $pkgdir/opt/$pkgname
  rm -f $pkgdir/opt/$pkgname/bin/*.bat
  echo > $pkgdir/opt/$pkgname/bin/sshterm.log
  chmod 0666 $pkgdir/opt/$pkgname/bin/sshterm.log
  echo -e "#!/bin/sh\ncd /opt/$pkgname/bin\n./sshterm.sh" \
   > $pkgdir/usr/bin/$pkgname
  chmod 0755 $pkgdir/usr/bin/$pkgname
}