blob: ae282c3c42079529fa6066271a9f90448b0e0bfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $Id: PKGBUILD 75689 2010-04-02 17:16:35Z andyrtr $
# Maintainer Tobias Powalowski <tpowa@archlinux.org>
# Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org>
pkgname=nx-common
pkgver=3.4.0
pkgrel=4
pkgdesc="NoMachine NX common package for client and server"
arch=('i686' 'x86_64')
license=('GPL')
url="http://nomachine.com/"
depends=('libjpeg>=8' 'libpng>=1.4.0' 'openssl>=1.0.0' 'gcc-libs' 'audiofile' 'alsa-lib' 'bash')
source=(\
#Compression libs and proxy sources
http://64.34.161.181/download/$pkgver/sources/nxcomp-$pkgver-7.tar.gz \
http://64.34.161.181/download/$pkgver/sources/nxssh-$pkgver-2.tar.gz \
# ESD Support
http://64.34.161.181/download/$pkgver/sources/nxesd-$pkgver-2.tar.gz
# 64bit fixes
NXproto.h.64bit.diff
nx-gcc44.patch)
options=(!libtool)
md5sums=('cba926f2b855231a8fc3e0dabff52855'
'18b81d850223ea84de244f8a9509c4b1'
'65d55f2a86baa59343432261cabd52ec'
'58341ba70dfab92ff38570071fbbf88a'
'c805442f1500d8d6de15ec224f63277e')
build() {
cd ${srcdir}
# patch -Np1 -i ${srcdir}/nx-gcc44.patch
mkdir -p ${pkgdir}/opt/NX/bin
mkdir -p ${pkgdir}/opt/NX/lib
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
cp -a libXcomp.so.* ${pkgdir}/opt/NX/lib
cd ${pkgdir}/opt/NX/lib
ln -s libXcomp.so.1 libXcomp.so
cd ${srcdir}/nxssh
./configure --prefix=/opt/NX
make || return 1
install -D -m755 nxssh ${pkgdir}/opt/NX/bin/nxssh
cd ${srcdir}/nxesd
./configure --prefix=/opt/NX
make || return 1
make DESTDIR=${pkgdir} install || return 1
# fix libxcomp linking
cd ${pkgdir}/opt/NX/lib
ln -s libXcomp.so.3 libXcomp.so.1
}
|