updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gwclient / PKGBUILD
blob974f4795ec827e665790dfe41af5c8f5b7955a1d
1 pkgname=gwclient
2 pkgver=8.0.2
3 pkgrel=2
4 pkgdesc="Novell Groupwise 8 Client for Linux"
5 url="http://gwclient.provo.novell.com/"
6 arch=('i686' 'x86_64')
7 case ${CARCH} in
8     i686 )
9         depends=('glibc' 'libstdc++5' 'gcc' 'unzip' 'rpmextract' 'jre')
10         ;;
11     x86_64 )
12         depends=('glibc' 'libstdc++5' 'gcc' 'unzip' 'rpmextract' 'bin32-jre')
13         ;;
14 esac
15 srcname="gw802hp2linuxclient.zip"
16 source=(http://gwclient.provo.novell.com/client/$srcname)
17 license="Novell-GW-8"
19 build()
21     cd $srcdir
22     unzip -o $srcname "*client*"
23     cd $pkgdir
24     rpmextract.sh $startdir/src/novell-groupwise-client-8.0.2-92614.i586.rpm
25     chmod +rx opt usr usr/share
26     rm -rf opt/novell/groupwise/client/jre
27     sed -i 's%opt/novell/groupwise/client/jre%${JAVA_HOME}/jre%' "$startdir"/pkg/opt/novell/groupwise/client/bin/groupwise
28     case ${CARCH} in
29         i686 )
30             sed -i '/LD_LIBRARY_PATH/s/:.*/:\/opt\/java\/jre\/lib\/i386:\/opt\/java\/jre\/lib\/i386\/client/' $pkgdir/opt/novell/groupwise/client/bin/groupwise
31             ;;
32         x86_64 )
33             sed -i '/LD_LIBRARY_PATH/s/:.*/:\/opt\/bin32-jre\/jre\/lib\/i386:\/opt\/bin32-jre\/jre\/lib\/i386\/client/' $pkgdir/opt/novell/groupwise/client/bin/groupwise
34             ;;
35     esac
37 md5sums=('ea29a56d4332a89686bef025872ad9c0')