updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / nxclient-3.4 / PKGBUILD
blob48d53824cfd7726b648dafcb01ba8a163a657aac
1 # $Id: PKGBUILD 24474 2009-01-17 18:42:23Z andyrtr $
2 # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
3 #Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org> 
4 _pkgname=nxclient
5 pkgname=${_pkgname}-3.4
6 pkgver=3.4.0
7 _minorver=-5
8 pkgrel=2
9 pkgdesc="Nomachine's nxclient for nx servers"
10 arch=(i686 x86_64)
11 url="http://nomachine.com"
12 makedepends=('rpmextract')
13 license=('custom:nomachine')
14 depends=('cups' 'libcups' "nx-common-3.4>=${pkgver}" 'libxext' 'libxft' 'xorg-xauth')
15 conflicts=('nxclient')
16 [ "$CARCH" = "x86_64" ] && source=(http://64.34.161.181/download/${pkgver}/Linux/${_pkgname}-${pkgver}${_minorver}.x86_64.rpm nomachine.key)
17 [ "$CARCH" = "x86_64" ] && md5sums=('4227c45b2ecc723ab57621dc714cd82b'
18          'cb5df74aff5160eab9cd4313019ae228')
19 [ "$CARCH" = "i686" ] && source=(http://64.34.161.181/download/${pkgver}/Linux/${_pkgname}-${pkgver}${_minorver}.i386.rpm nomachine.key)
20 [ "$CARCH" = "i686" ] && md5sums=('2701166ca91ba76892d7559407bd21be'
21          'cb5df74aff5160eab9cd4313019ae228')
22 install=nxclient.install
24 build() {
25   cd $startdir/src
26   rpmextract.sh *.rpm
27   rm usr/NX/bin/nxssh usr/NX/bin/nxesd
28   rm -r usr/NX/lib
29   rm usr/NX/share/keys/server.id_dsa.key
30   sed -i -e 's,/usr/NX,/opt/NX,g' etc/profile.d/nx.sh etc/profile.d/nx.csh
31   sed -i -e 's,/usr/NX/,/opt/NX/,g' ${srcdir}/usr/NX/share/applnk/network/*.desktop
32   #sed -i -e 's,/bin/nxclient,/bin/nxclient-nomachine,g' ${srcdir}/usr/NX/share/applnk/network/*.desktop
34   install -D -m 755 ${srcdir}/etc/profile.d/nx.sh ${pkgdir}/etc/profile.d/nx.sh 
35   install -D -m 755 ${srcdir}/etc/profile.d/nx.csh ${pkgdir}/etc/profile.d/nx.csh 
36   install -D -m 644 ${srcdir}/usr/NX/share/applnk/network/nxclient-wizard.desktop ${pkgdir}/usr/share/applications/nxclient-wizard.desktop
37   install -D -m 644 ${srcdir}/usr/NX/share/applnk/network/nxclient.desktop ${pkgdir}/usr/share/applications/nxclient.desktop
38   install -D -m 644 ${srcdir}/usr/NX/share/applnk/network/nxclient-admin.desktop ${pkgdir}/usr/share/applications/nxclient-admin.desktop
39   rm -r ${srcdir}/usr/NX/share/applnk
40   cd usr
41   mkdir -p ${pkgdir}/opt
42   mv NX ${pkgdir}/opt
43   # add default key file
44   install -D -m 644 ${srcdir}/nomachine.key ${pkgdir}/opt/NX/share/keys/server.id_dsa.key
45   #mv ${pkgdir}/opt/NX/bin/nxclient ${pkgdir}/opt/NX/bin/nxclient-nomachine
46   # add license file
47   mkdir -p ${pkgdir}/usr/share/licenses/nxclient
48   mv ${pkgdir}/opt/NX/share/documents/client/license-info ${pkgdir}/usr/share/licenses/nxclient/LICENSE