updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / tn5250j / PKGBUILD
blobac8155c2afa2f0ac93da2eecb13ef8d67ea06442
1 # Contributor: Gino Pezzin <pezzin@gmail.com>
2 pkgname=tn5250j
3 pkgver=0.6.0
4 pkgrel=5
5 pkgdesc="The tn5250j is a 5250 terminal emulator for the AS/400 written in Java"
6 url="http://tn5250j.sourceforge.net/"
7 arch=('i686')
8 license="GPL"
9 depends=('bash' 'openjdk6')
10 makedepends=()
11 conflicts=()
12 replaces=()
13 backup=()
14 install=
15 source=(http://dl.sourceforge.net/tn5250j/$pkgname-$pkgver-bin-nosubdir.zip $pkgname.sh $pkgname.png $pkgname.desktop)
16 md5sums=('0190aadeb6f993b32db86a25e9aaaba3' 'ac911e2aad8f2bd2b0c5545c17f1eecd' '31671b10de5bbccd092ad345dda5adf8' 'c0355b249c10dbca9dfcb7273879dd72')
18 build() {
19   cd $startdir/src/
21   mkdir -p $startdir/pkg/usr/share/java/$pkgname
22   install -D -m644 *.* $startdir/pkg/usr/share/java/tn5250j/
23   install -D -m644 ../$pkgname.png $startdir/pkg/usr/share/pixmaps/$pkgname.png
24   install -D -m644 ../$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
25   install -D -m755 $startdir/$pkgname.sh $startdir/pkg/usr/bin/$pkgname.sh
26   cd $startdir/pkg/usr/share/java/$pkgname
27   rm $pkgname-$pkgver-bin-nosubdir.zip $pkgname.{sh,png,desktop}