1 # Maintainer: Markus Opitz <mastero23 at gmail dot com>
6 pkgdesc="NX customized X11 library"
8 url="http://www.x2go.org/"
10 depends=('fontconfig' 'libxfixes' 'libxmu' 'libxpm' 'libxrender' 'nxcomp-x2go-git')
11 install=nx-x11.install
12 source=('nx-x11.ld.so.conf.d')
13 md5sums=('f2ec60c7e2d81bef2f7292d2b33681a6')
15 _pkgname="${pkgname%-git}"
17 _gitroot="git://code.x2go.org/$_gitname.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_gitname-build"
34 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35 cd "$srcdir/$_gitname-build/nx-X11"
41 cd "$srcdir/$_gitname-build/nx-X11"
43 install -m 755 -d "$pkgdir/usr/include/nx/"
44 cp -r -L exports/include/* "$pkgdir/usr/include/nx/"
46 install -m 755 -d "$pkgdir/usr/lib/nx/X11"
48 install -m 644 lib/expat/libexpat.so.0.4.0 "$pkgdir/usr/lib/nx/X11/libexpat.so.0.4.0"
49 ln -s libexpat.so.0.4.0 "$pkgdir/usr/lib/nx/X11/libexpat.so"
50 ln -s libexpat.so.0.4.0 "$pkgdir/usr/lib/nx/X11/libexpat.so.0"
52 install -m 644 lib/font/stubs/libfntstubs.a "$pkgdir/usr/lib/nx/X11/libfntstubs.a"
54 install -m 644 lib/fontconfig/libfontconfig.so.1.0.4 "$pkgdir/usr/lib/nx/X11/libfontconfig.so.1.0.4"
55 ln -s libfontconfig.so.1.0.4 "$pkgdir/usr/lib/nx/X11/libfontconfig.so"
56 ln -s libfontconfig.so.1.0.4 "$pkgdir/usr/lib/nx/X11/libfontconfig.so.1"
58 install -m 644 lib/fontenc/libfontenc.so.1.0 "$pkgdir/usr/lib/nx/X11/libfontenc.so.1.0"
59 ln -s libfontenc.so.1.0 "$pkgdir/usr/lib/nx/X11/libfontenc.so"
60 ln -s libfontenc.so.1.0 "$pkgdir/usr/lib/nx/X11/libfontenc.so.1"
62 install -m 644 lib/freetype2/libfreetype.a "$pkgdir/usr/lib/nx/X11/libfreetype.a"
64 install -m 644 lib/freetype2/libfreetype.so.6.3.7 "$pkgdir/usr/lib/nx/X11/libfreetype.so.6.3.7"
65 ln -s libfreetype.so.6.3.7 "$pkgdir/usr/lib/nx/X11/libfreetype.so"
66 ln -s libfreetype.so.6.3.7 "$pkgdir/usr/lib/nx/X11/libfreetype.so.6"
68 install -m 644 lib/FS/libFS.so.6.0 "$pkgdir/usr/lib/nx/X11/libFS.so.6.0"
69 ln -s libFS.so.6.0 "$pkgdir/usr/lib/nx/X11/libFS.so"
70 ln -s libFS.so.6.0 "$pkgdir/usr/lib/nx/X11/libFS.so.6"
72 install -m 644 lib/ICE/libICE.so.6.4 "$pkgdir/usr/lib/nx/X11/libICE.so.6.4"
73 ln -s libICE.so.6.4 "$pkgdir/usr/lib/nx/X11/libICE.so"
74 ln -s libICE.so.6.4 "$pkgdir/usr/lib/nx/X11/libICE.so.6"
76 install -m 644 lib/oldX/liboldX.a "$pkgdir/usr/lib/nx/X11/liboldX.a"
78 install -m 644 lib/SM/libSM.so.6.0 "$pkgdir/usr/lib/nx/X11/libSM.so.6.0"
79 ln -s libSM.so.6.0 "$pkgdir/usr/lib/nx/X11/libSM.so"
80 ln -s libSM.so.6.0 "$pkgdir/usr/lib/nx/X11/libSM.so.6"
82 install -m 644 lib/X11/libX11.so.6.2 "$pkgdir/usr/lib/nx/X11/libX11.so.6.2"
83 ln -s libX11.so.6.2 "$pkgdir/usr/lib/nx/X11/libX11.so"
84 ln -s libX11.so.6.2 "$pkgdir/usr/lib/nx/X11/libX11.so.6"
86 install -m 644 lib/Xau/libXau.a "$pkgdir/usr/lib/nx/X11/libXau.a"
88 install -m 644 lib/Xaw7/libXaw.so.7.0 "$pkgdir/usr/lib/nx/X11/libXaw.so.7.0"
89 ln -s libXaw.so.7.0 "$pkgdir/usr/lib/nx/X11/libXaw.so"
90 ln -s libXaw.so.7.0 "$pkgdir/usr/lib/nx/X11/libXaw.so.7"
92 install -m 644 lib/Xcomposite/libXcomposite.so.1.0 "$pkgdir/usr/lib/nx/X11/libXcomposite.so.1.0"
93 ln -s libXcomposite.so.1.0 "$pkgdir/usr/lib/nx/X11/libXcomposite.so"
94 ln -s libXcomposite.so.1.0 "$pkgdir/usr/lib/nx/X11/libXcomposite.so.1"
96 install -m 644 lib/Xcursor/libXcursor.so.1.0.2 "$pkgdir/usr/lib/nx/X11/libXcursor.so.1.0.2"
97 ln -s libXcursor.so.1.0.2 "$pkgdir/usr/lib/nx/X11/libXcursor.so"
98 ln -s libXcursor.so.1.0.2 "$pkgdir/usr/lib/nx/X11/libXcursor.so.1"
100 install -m 644 lib/Xdamage/libXdamage.so.1.0 "$pkgdir/usr/lib/nx/X11/libXdamage.so.1.0"
101 ln -s libXdamage.so.1.0 "$pkgdir/usr/lib/nx/X11/libXdamage.so"
102 ln -s libXdamage.so.1.0 "$pkgdir/usr/lib/nx/X11/libXdamage.so.1"
104 install -m 644 lib/Xdmcp/libXdmcp.a "$pkgdir/usr/lib/nx/X11/libXdmcp.a"
106 install -m 644 lib/Xext/libXext.so.6.4 "$pkgdir/usr/lib/nx/X11/libXext.so.6.4"
107 ln -s libXext.so.6.4 "$pkgdir/usr/lib/nx/X11/libXext.so"
108 ln -s libXext.so.6.4 "$pkgdir/usr/lib/nx/X11/libXext.so.6"
110 install -m 644 lib/Xfixes/libXfixes.so.3.0 "$pkgdir/usr/lib/nx/X11/libXfixes.so.3.0"
111 ln -s libXfixes.so.3.0 "$pkgdir/usr/lib/nx/X11/libXfixes.so"
112 ln -s libXfixes.so.3.0 "$pkgdir/usr/lib/nx/X11/libXfixes.so.3"
114 install -m 644 lib/font/libXfont.a "$pkgdir/usr/lib/nx/X11/libXfont.a"
116 install -m 644 lib/font/libXfont.so.1.5 "$pkgdir/usr/lib/nx/X11/libXfont.so.1.5"
117 ln -s libXfont.so.1.5 "$pkgdir/usr/lib/nx/X11/libXfont.so"
118 ln -s libXfont.so.1.5 "$pkgdir/usr/lib/nx/X11/libXfont.so.1"
120 install -m 644 lib/Xft1/libXft.so.1.1 "$pkgdir/usr/lib/nx/X11/libXft.so.1.1"
121 ln -s libXft.so.1.1 "$pkgdir/usr/lib/nx/X11/libXft.so.1"
123 install -m 644 lib/Xft/libXft.so.2.1.2 "$pkgdir/usr/lib/nx/X11/libXft.so.2.1.2"
124 ln -s libXft.so.2.1.2 "$pkgdir/usr/lib/nx/X11/libXft.so"
125 ln -s libXft.so.2.1.2 "$pkgdir/usr/lib/nx/X11/libXft.so.2"
127 install -m 644 lib/X11/xlibi18n/im/ximcp/libximcp.so.2 "$pkgdir/usr/lib/nx/X11/libximcp.so.2"
128 ln -s libximcp.so.2 "$pkgdir/usr/lib/nx/X11/libximcp.so"
130 install -m 644 lib/X11/xlibi18n/lc/def/libxlcDef.so.2 "$pkgdir/usr/lib/nx/X11/libxlcDef.so.2"
131 ln -s libxlcDef.so.2 "$pkgdir/usr/lib/nx/X11/libxlcDef.so"
133 install -m 644 lib/X11/xlibi18n/lc/Utf8/libxlcUTF8Load.so.2 "$pkgdir/usr/lib/nx/X11/libxlcUTF8Load.so.2"
134 ln -s libxlcUTF8Load.so.2 "$pkgdir/usr/lib/nx/X11/libxlcUTF8Load.so"
136 install -m 644 lib/X11/xlibi18n/lc/gen/libxlibi18n.so.2 "$pkgdir/usr/lib/nx/X11/libxlibi18n.so.2"
137 ln -s libxlibi18n.so.2 "$pkgdir/usr/lib/nx/X11/libxlibi18n.so"
139 install -m 644 lib/X11/xlibi18n/lc/xlocale/libxlocale.so.2 "$pkgdir/usr/lib/nx/X11/libxlocale.so.2"
140 ln -s libxlocale.so.2 "$pkgdir/usr/lib/nx/X11/libxlocale.so"
142 install -m 644 lib/Xmu/libXmu.so.6.2 "$pkgdir/usr/lib/nx/X11/libXmu.so.6.2"
143 ln -s libXmu.so.6.2 "$pkgdir/usr/lib/nx/X11/libXmu.so"
144 ln -s libXmu.so.6.2 "$pkgdir/usr/lib/nx/X11/libXmu.so.6"
146 install -m 644 lib/Xmuu/libXmuu.so.1.0 "$pkgdir/usr/lib/nx/X11/libXmuu.so.1.0"
147 ln -s libXmuu.so.1.0 "$pkgdir/usr/lib/nx/X11/libXmuu.so"
148 ln -s libXmuu.so.1.0 "$pkgdir/usr/lib/nx/X11/libXmuu.so.1"
150 install -m 644 lib/X11/xlibi18n/om/generic/libxomGeneric.so.2 "$pkgdir/usr/lib/nx/X11/libxomGeneric.so.2"
151 ln -s libxomGeneric.so.2 "$pkgdir/usr/lib/nx/X11/libxomGeneric.so"
153 install -m 644 lib/Xpm/libXpm.so.4.11 "$pkgdir/usr/lib/nx/X11/libXpm.so.4.11"
154 ln -s libXpm.so.4.11 "$pkgdir/usr/lib/nx/X11/libXpm.so"
155 ln -s libXpm.so.4.11 "$pkgdir/usr/lib/nx/X11/libXpm.so.4"
157 install -m 644 lib/Xrandr/libXrandr.so.2.0 "$pkgdir/usr/lib/nx/X11/libXrandr.so.2.0"
158 ln -s libXrandr.so.2.0 "$pkgdir/usr/lib/nx/X11/libXrandr.so"
159 ln -s libXrandr.so.2.0 "$pkgdir/usr/lib/nx/X11/libXrandr.so.2"
161 install -m 644 lib/Xrender/libXrender.so.1.2.2 "$pkgdir/usr/lib/nx/X11/libXrender.so.1.2.2"
162 ln -s libXrender.so.1.2.2 "$pkgdir/usr/lib/nx/X11/libXrender.so"
163 ln -s libXrender.so.1.2.2 "$pkgdir/usr/lib/nx/X11/libXrender.so.1"
165 install -m 644 lib/Xt/libXt.so.6.0 "$pkgdir/usr/lib/nx/X11/libXt.so.6.0"
166 ln -s libXt.so.6.0 "$pkgdir/usr/lib/nx/X11/libXt.so"
167 ln -s libXt.so.6.0 "$pkgdir/usr/lib/nx/X11/libXt.so.6"
169 install -m 644 lib/Xtst/libXtst.so.6.1 "$pkgdir/usr/lib/nx/X11/libXtst.so.6.1"
170 ln -s libXtst.so.6.1 "$pkgdir/usr/lib/nx/X11/libXtst.so"
171 ln -s libXtst.so.6.1 "$pkgdir/usr/lib/nx/X11/libXtst.so.6"
173 install -m 755 -d "$pkgdir/usr/share/nx"
174 install -m 644 programs/Xserver/Xext/SecurityPolicy "$pkgdir/usr/share/nx"
176 install -m 755 -d "$pkgdir/etc/ld.so.conf.d/"
177 install -m 644 "$srcdir/nx-x11.ld.so.conf.d" "$pkgdir/etc/ld.so.conf.d/nx.conf"