summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-12-15 18:26:55 -0700
committerBrian Bidulock2015-12-15 18:26:55 -0700
commite33788fb669be08828b9e4f6de9bcc09c8cb1085 (patch)
treeefb2ef979dfd33a971fb1fac429355fefc681627
downloadaur-e33788fb669be08828b9e4f6de9bcc09c8cb1085.tar.gz
initial version
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD51
-rw-r--r--nxcompsh-gcc43.patch18
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3135818c2c9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+# Generated by mksrcinfo v8
+# Wed Dec 16 01:26:53 UTC 2015
+pkgbase = nx-common
+ pkgdesc = NoMachine NX common package for client and server
+ pkgver = 3.5.0
+ pkgrel = 6
+ url = http://nomachine.com/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = xorg-server-devel
+ makedepends = nx-headers
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = openssl
+ depends = gcc-libs
+ depends = libxcomp
+ options = !libtool
+ source = ftp://ftp.uni-duisburg.de/X11/NX/sources/3.5.0/nxcompsh-3.5.0-1.tar.gz
+ source = ftp://ftp.uni-duisburg.de/X11/NX/sources/3.5.0/nxssh-3.5.0-2.tar.gz
+ source = nxcompsh-gcc43.patch
+ md5sums = 84ade443b79ea079380b754aba9d392e
+ md5sums = f52fcdb38e09f8dcfb9ff0344dfbbbd6
+ md5sums = 3b2436f0090cbe0fa77cde0dfa80a87a
+
+pkgname = nx-common
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cf8ae9a9a97
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Miguel Rasero <skuda21@gmail.com>
+# Contributor: Tobias Powalowski <tpowa@archlinux.org>
+# Contributed: eliott <eliott@solarblue.net>, Andre Naumann <anaumann@SPARCed.org>
+
+pkgname=nx-common
+pkgver=3.5.0
+pkgrel=6
+pkgdesc="NoMachine NX common package for client and server"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://nomachine.com/"
+depends=('libjpeg-turbo' 'libpng' 'openssl' 'gcc-libs' 'libxcomp')
+makedepends=('xorg-server-devel' 'nx-headers')
+source=(ftp://ftp.uni-duisburg.de/X11/NX/sources/$pkgver/nxcompsh-$pkgver-1.tar.gz
+ ftp://ftp.uni-duisburg.de/X11/NX/sources/$pkgver/nxssh-$pkgver-2.tar.gz
+ nxcompsh-gcc43.patch)
+options=('!libtool')
+md5sums=('84ade443b79ea079380b754aba9d392e'
+ 'f52fcdb38e09f8dcfb9ff0344dfbbbd6'
+ '3b2436f0090cbe0fa77cde0dfa80a87a')
+
+build() {
+ # nxcompsh
+ cd ${srcdir}/nxcompsh
+ patch -Np1 -i ${srcdir}/nxcompsh-gcc43.patch
+ ./configure --prefix=/usr/lib/nx
+ make
+
+ # nxssh
+ cd ${srcdir}/nxssh
+ sed -i "s:NX.h:nx/NX.h:g" clientloop.c packet.c proxy.c
+ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
+ make
+}
+
+package() {
+ install -dm755 ${pkgdir}/usr/{bin,lib/nx}
+
+ # nxcompsh
+ cd ${srcdir}/nxcompsh
+ cp -a libXcompsh.so* ${pkgdir}/usr/lib/nx
+ cd ${pkgdir}/usr/lib/
+ ln -sv /usr/lib/nx/libXcompsh.so{,.3,.3.5.0} .
+ # ^ really needed?
+
+ # nxssh
+ cd ${srcdir}/nxssh
+ install -D -m755 nxssh ${pkgdir}/usr/lib/nx/bin/nxssh
+ cd ${pkgdir}/usr/bin
+ ln -sv /usr/lib/nx/bin/nxssh .
+}
diff --git a/nxcompsh-gcc43.patch b/nxcompsh-gcc43.patch
new file mode 100644
index 00000000000..a67f25167f9
--- /dev/null
+++ b/nxcompsh-gcc43.patch
@@ -0,0 +1,18 @@
+--- nxcompsh/Misc.h~ 2007-06-04 13:39:49.000000000 +0200
++++ nxcompsh/Misc.h 2008-04-12 12:46:24.000000000 +0200
+@@ -18,10 +18,12 @@
+ #ifndef Misc_H
+ #define Misc_H
+
+-#include <iostream.h>
++#include <iostream>
+
+-#include <errno.h>
+-#include <string.h>
++#include <cerrno>
++#include <cstring>
++
++using namespace std;
+
+ //
+ // Error handling macros.