summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMantas Mikulėnas2015-07-09 22:29:32 +0300
committerMantas Mikulėnas2015-07-09 22:29:32 +0300
commitf9f746629cd5e84c3b471c687f92c1eb6a5c8169 (patch)
tree2d57b26cb7db14b9a4a9674856a74425ca43065d
parent8de72f3812b57c8e4a4c4631ea3cd63670d98b9a (diff)
downloadaur-f9f746629cd5e84c3b471c687f92c1eb6a5c8169.tar.gz
modernize
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD34
2 files changed, 23 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3ca0ea5215a..231af58f473 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gsi-sshterm
pkgdesc = Java Grid authentication program by the UK National Grid Service
pkgver = 0.91d
- pkgrel = 2
+ pkgrel = 3
url = http://wiki.ngs.ac.uk/index.php?title=GSI-SSHTerm
arch = i686
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index f88c4e764a7..5763767fb6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
-# Maintainer: Pierre Chapuis <catwell at archlinux dot us>
+# Maintainer: Mantas Mikulėnas <grawity@gmail.com>
+# Contributor: Pierre Chapuis <catwell at archlinux dot us>
pkgname=gsi-sshterm
pkgver=0.91d
-pkgrel=2
+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'
@@ -13,14 +14,23 @@ source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkg
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
+ 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