mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
|
# $Id: PKGBUILD 44734 2009-07-03 19:11:59Z andyrtr $
|
||
|
# Maintainer Tobias Powalowski <tpowa@archlinux.org>
|
||
|
# Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org>
|
||
|
pkgname=nx-common
|
||
|
pkgver=3.3.0
|
||
|
pkgrel=3
|
||
|
pkgdesc="NoMachine NX common package for client and server"
|
||
|
arch=('i686' 'x86_64')
|
||
|
license=('GPL')
|
||
|
url="http://nomachine.com/"
|
||
|
depends=('libjpeg>=7' 'libpng' 'openssl>=0.9.8g' 'gcc-libs' 'audiofile' 'alsa-lib' 'bash')
|
||
|
source=(\
|
||
|
#Compression libs and proxy sources
|
||
|
http://64.34.161.181/download/$pkgver/sources/nxcomp-$pkgver-4.tar.gz \
|
||
|
http://64.34.161.181/download/$pkgver/sources/nxssh-$pkgver-1.tar.gz \
|
||
|
# ESD Support
|
||
|
http://64.34.161.181/download/$pkgver/sources/nxesd-$pkgver-1.tar.gz
|
||
|
# 64bit fixes
|
||
|
NXproto.h.64bit.diff
|
||
|
nx-gcc44.patch)
|
||
|
options=(!libtool)
|
||
|
|
||
|
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
|
||
|
}
|
||
|
md5sums=('0eb3866f1173767f185a1d62dd51dba0'
|
||
|
'e9bb4c1cd61c42db9626894845fcf3f7'
|
||
|
'358c449a459a2d7d66e70b61b72baa72'
|
||
|
'58341ba70dfab92ff38570071fbbf88a'
|
||
|
'c805442f1500d8d6de15ec224f63277e')
|