[arch-commits] Commit in nx/trunk (PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Mon Apr 16 14:52:06 EDT 2012


    Date: Monday, April 16, 2012 @ 14:52:06
  Author: andyrtr
Revision: 156296

upgpkg: nx 3.5.0.12-0.4

add /usr/bin wrapppers; add more symlinks to work with nxclient

Modified:
  nx/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++++++++++++++++++++-----------------
 1 file changed, 26 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-16 18:35:37 UTC (rev 156295)
+++ PKGBUILD	2012-04-16 18:52:06 UTC (rev 156296)
@@ -4,7 +4,7 @@
 pkgbase=nx
 pkgname=('libxcomp' 'nxproxy' 'nx-x11' 'nx-xcompext' 'nxagent' 'nx-headers')
 pkgver=3.5.0.12
-pkgrel=0.3
+pkgrel=0.4
 arch=('i686' 'x86_64')
 url="http://wiki.x2go.org/"
 license=('GPL')
@@ -30,9 +30,10 @@
   pkgdesc="NX X compression library"
   depends=('libjpeg-turbo' 'libpng' 'gcc-libs')
 	
-  cd "${srcdir}/fakeinstall"
-  install -dm755 ${pkgdir}/usr/lib/
-  cp -a ${srcdir}/fakeinstall/usr/lib/nx/libXcomp.so* ${pkgdir}/usr/lib
+  install -dm755 ${pkgdir}/usr/lib/nx/lib
+  cp -a ${srcdir}/fakeinstall/usr/lib/nx/libXcomp.so* ${pkgdir}/usr/lib/nx/lib
+  cd ${pkgdir}/usr/lib/
+  ln -sv /usr/lib/nx/lib/libXcomp.so{,.3,.3.5.0} .
 }
 
 package_nxproxy() {
@@ -40,9 +41,11 @@
   pkgdesc="NX proxy"
   depends=('libxcomp')
   
-  cd "${srcdir}/fakeinstall"
-  install -dm755 ${pkgdir}/usr/{bin,share/man/man1}
-  cp -a ${srcdir}/fakeinstall/usr/bin/nxproxy ${pkgdir}/usr/bin
+  install -dm755 ${pkgdir}/usr/{bin,share/man/man1,lib/nx}
+  cp -a ${srcdir}/fakeinstall/usr/bin/nxproxy ${pkgdir}/usr/lib/nx
+  # the wrapper
+  cp -a ${srcdir}/nx-libs_$pkgver/bin/nxproxy ${pkgdir}/usr/bin
+  chmod +x ${pkgdir}/usr/bin/nxproxy
   cp -a ${srcdir}/fakeinstall/usr/share/man/man1/nxproxy.1 ${pkgdir}/usr/share/man/man1
 }
 
@@ -51,20 +54,27 @@
   pkgdesc="Xcompext/Xcompshad library for NX"
   depends=('libxcomp' 'nx-x11')
 	
-  cd "${srcdir}/fakeinstall"
-  install -dm755 ${pkgdir}/usr/lib/
-  cp -a ${srcdir}/fakeinstall/usr/lib/nx/libXcompext.so* ${pkgdir}/usr/lib
+  install -dm755 ${pkgdir}/usr/lib/nx
+  #cp -a ${srcdir}/fakeinstall/usr/lib/nx/libXcompext.so* ${pkgdir}/usr/lib/nx
+  cp -a ${srcdir}/fakeinstall/usr/lib/nx/libXcompext.so.3.5.0 ${pkgdir}/usr/lib/nx
+  cd ${pkgdir}/usr/lib/nx
+  ln -sv libXcompext.so.3.5.0 libXcompext.so.3
+  ln -sv libXcompext.so.3.5.0 libXcompext.so
+  cd ${pkgdir}/usr/lib/
+  ln -sv /usr/lib/nx/libXcompext.so{,.3,.3.5.0} .
 }
 
 package_nx-x11() {
-  
+ 
   pkgdesc="NX-X11 lib for the NX framework"
   depends=('libxcomp')
 	
-  cd "${srcdir}/fakeinstall"
   install -dm755 ${pkgdir}/{etc/ld.so.conf.d,usr/bin,usr/lib/nx}
   cp -aR ${srcdir}/fakeinstall/usr/lib/NX3/lib*/nx/lib*.so* ${pkgdir}/usr/lib/nx
-  cp -aR ${srcdir}/fakeinstall/usr/lib/NX3/bin/nxauth ${pkgdir}/usr/bin
+  cp -a ${srcdir}/fakeinstall/usr/lib/NX3/bin/nxauth ${pkgdir}/usr/lib/nx
+  # the wrapper
+  cp -a ${srcdir}/nx-libs_$pkgver/bin/nxauth ${pkgdir}/usr/bin
+  chmod +x ${pkgdir}/usr/bin/nxauth
   
   install -m 644 "$srcdir/nx-x11.ld.so.conf.d" "$pkgdir/etc/ld.so.conf.d/nx.conf"
 }
@@ -74,18 +84,17 @@
   pkgdesc="NX X server based on Xnest"
   depends=('nx-xcompext')
 	
-  cd "${srcdir}/fakeinstall"
   install -dm755 ${pkgdir}/usr/{bin,lib/nx}
   cp -aR ${srcdir}/fakeinstall/usr/lib/NX3/bin/nxagent ${pkgdir}/usr/lib/nx
-  cd ${pkgdir}/usr/bin
-  ln -sv /usr/lib/nx/nxagent .
+  # the wrapper
+  cp -a ${srcdir}/nx-libs_$pkgver/bin/nxagent ${pkgdir}/usr/bin
+  chmod +x ${pkgdir}/usr/bin/nxagent
 }
 
 package_nx-headers() {
 
   pkgdesc="NX headers"
   
-  cd "${srcdir}/fakeinstall"
   install -dm755 ${pkgdir}/usr/include/nx
   cp -aR ${srcdir}/fakeinstall/usr/include/nx/* ${pkgdir}/usr/include/nx
 }  



More information about the arch-commits mailing list