#Maintainer: Thorsten Muehlfelder #Mandatory pkgname=nxclient #specify in source again! pkgver=3.2.0.14 pkgrel=1 zenver=54 arch=i486 source=("http://64.34.161.181/download/3.2.0/Linux/$pkgname-3.2.0-14.i386.tar.gz") sourcetemplate=http://thenktor.dyndns.org/packages/$pkgname/ #Optional url="http://www.nomachine.com" docs=('cups-info' 'license-info' 'readme-info') lessdepends=('nxlibs' 'libjpeg' 'libpng' 'openssl' 'zlib') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - A NX client" "Client to connect to a remote desktop NX server like FreeNX" ) build() { cd $startdir/src mkdir -p -m 755 $startdir/pkg/usr/bin cd NX mkdir -p -m 755 $startdir/pkg/usr/lib/nxclient cp -a bin $startdir/pkg/usr/lib/nxclient cp -a lib $startdir/pkg/usr/lib/nxclient cp -a share $startdir/pkg/usr/lib/nxclient # icons mkdir -p -m 755 $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp -a share/icons/48x48/nxclient-icon.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/nxclient.png cp -a share/icons/48x48/nxclient-admin.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/nxclient-admin.png cp -a share/icons/48x48/nxclient-wizard.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/nxclient-wizard.png # start script mkdir -p -m 755 $startdir/pkg/usr/bin cat << "EOF" > $startdir/pkg/usr/bin/nxclient #!/bin/bash # nxclient start script cd /usr/lib/nxclient/bin ./nxclient $* EOF chmod 755 $startdir/pkg/usr/bin/nxclient # desktop files mkdir -p -m 755 $startdir/pkg/usr/share/applications/ cat << "EOF" > $startdir/pkg/usr/share/applications/nxclient.desktop [Desktop Entry] Encoding=UTF-8 Name=NX Client Comment=Connect to a NX server Comment[de]=Mit einem NX-Server verbinden Exec=nxclient Icon=nxclient Terminal=false Type=Application Categories=Application;Network; EOF cat << "EOF" > $startdir/pkg/usr/share/applications/nxclient-admin.desktop [Desktop Entry] Encoding=UTF-8 Name=NX Session Administrator Name[de]=NX Sitzungsadministrator Comment=View NX sessions and logs Comment[de]=Betrachte NX Sitzungen und Logdateien Exec=nxclient --admin Icon=nxclient-admin Terminal=false Type=Application Categories=Application;Network; EOF cat << "EOF" > $startdir/pkg/usr/share/applications/nxclient-wizard.desktop [Desktop Entry] Encoding=UTF-8 Name=NX Connection Wizard Name[de]=NX Verbindungsassistent Comment=Configure new NX Client connections Comment[de]=Neue NX Client Verbindungen konfigurieren Exec=nxclient --wizard Icon=nxclient-wizard Terminal=false Type=Application Categories=Application;Network; EOF }