# Maintainer Tobias Powalowski # Contributed: eliott , Andre Naumann pkgname=nxserver pkgver=3.3.0 pkgrel=6 pkgdesc="NoMachine NX is the next-generation X compression and roundtrip suppression scheme." arch=('arm') url="http://nomachine.com/" license=('GPL') depends=("nx-common>=$pkgver" 'libxaw' 'libxrender' 'libxp' 'gcc-libs' 'libjpeg>=7' \ 'libxpm' 'libpng' 'libxdamage' 'libxrandr' 'libxcomposite' 'libxtst' 'freetype2') makedepends=('imake') source=(http://64.34.161.181/download/$pkgver/sources/nx-X11-$pkgver-6.tar.gz http://64.34.161.181/download/$pkgver/sources/nxwin-$pkgver-2.tar.gz http://64.34.161.181/download/$pkgver/sources/nxauth-$pkgver-1.tar.gz http://64.34.161.181/download/$pkgver/sources/nxcomp-$pkgver-4.tar.gz http://64.34.161.181/download/$pkgver/sources/nxagent-$pkgver-13.tar.gz http://64.34.161.181/download/$pkgver/sources/nxcompsh-$pkgver-1.tar.gz http://64.34.161.181/download/$pkgver/sources/nxproxy-$pkgver-2.tar.gz http://64.34.161.181/download/$pkgver/sources/nxcompext-$pkgver-4.tar.gz http://64.34.161.181/download/$pkgver/sources/nxcompshad-$pkgver-3.tar.gz nxcompsh-gcc43.patch nxcompshad-gcc43.patch nx-gcc44.patch) options=(!libtool) md5sums=('954de7b8a3d1e6cd24bdc96db2857f1b' '71de8e60c0cdee887e00d1a44f337ad1' '6d59de2cbf61430ac513ddfa6b05bc76' '0eb3866f1173767f185a1d62dd51dba0' '052091391a7340007db764025f36750a' 'ed47951ffceb9e8483f7b4202b1cddb0' '047206e5a811b915aac4ae09bddef207' '421398e9f8878a9956aebbf9452ec40a' '02f051366c4aae96bfefda60d701d8b4' 'b6c279654dac421fc3dd1a27d66ff53c' '01cea8bc5997ae2c3790cbcb7d624c86' 'c805442f1500d8d6de15ec224f63277e') build() { cd $startdir/src mkdir -p ${pkgdir}/opt/NX/bin mkdir -p ${pkgdir}/opt/NX/lib patch -Np0 -i ../nxcompsh-gcc43.patch || return 1 patch -Np0 -i ../nxcompshad-gcc43.patch || return 1 patch -Np1 -i ../nx-gcc44.patch || return 1 cd ${srcdir}/nxcomp if [ "$CARCH" = "x86_64" ]; then patch -Np1 -i ../NXproto.h.64bit.diff || return 1 fi ./configure --prefix=/opt/NX make || return 1 cd ${srcdir}/nxcompshad ./configure --prefix=/opt/NX make || return 1 cp -a libXcompshad.so* ${pkgdir}/opt/NX/lib cd ${srcdir}/nxcompsh ./configure --prefix=/opt/NX make || return 1 cp -a libXcompsh.so* ${pkgdir}/opt/NX/lib cd ${srcdir}/nxproxy ./configure --prefix=/opt/NX make || return 1 make prefix=${pkgdir}/opt/NX install || return 1 cd ${srcdir}/nx-X11 make World || return 1 cp -a lib/X11/libX11.so* ${pkgdir}/opt/NX/lib cp -a lib/Xext/libXext.so* ${pkgdir}/opt/NX/lib cp -a lib/Xrender/libXrender.so* ${pkgdir}/opt/NX/lib install -D -m755 programs/Xserver/nxagent ${pkgdir}/opt/NX/bin/nxagent install -D -m755 programs/nxauth/nxauth ${pkgdir}/opt/NX/bin/nxauth cd ${srcdir}/nxcompext ./configure --prefix=/opt/NX make || return 1 cp -a libXcompext.so* ${pkgdir}/opt/NX/lib # fix libXcompext linking cd ${pkgdir}/opt/NX/lib ln -s libXcompext.so.3 libXcompext.so.1 }