1 # Maintainer: FoxBuru <FoxBuru at gmail dot com>
2 # Contributor: Det <nimetonmaili@gmail.com>
3 # Contributor: SpeedVin <speedvin at archlinux dot us>
4 # Based on xorg-server-dev
7 pkgname=('xorg-server-git')
8 true && pkgname=('xorg-server-git' 'xorg-server-xephyr-git' 'xorg-server-xdmx-git' 'xorg-server-xvfb-git' 'xorg-server-xnest-git' 'xorg-server-common-git' 'xorg-server-devel-git')
11 arch=('i686' 'x86_64')
13 url="http://xorg.freedesktop.org"
14 makedepends=('pixman' 'libx11' 'mesa' 'libgl' 'xf86driproto' 'xcmiscproto' 'xtrans' 'bigreqsproto' 'randrproto' 'inputproto' 'fontsproto' 'videoproto' 'compositeproto' 'recordproto' 'scrnsaverproto' 'resourceproto' 'xineramaproto' 'libxkbfile' 'libxfont' 'renderproto' 'libpciaccess' 'libxv' 'xf86dgaproto' 'libxmu' 'libxrender' 'libxi' 'dmxproto' 'libxaw' 'libdmx' 'libxtst' 'libxres' 'xorg-xkbcomp' 'xextproto' 'xorg-util-macros' 'xorg-font-util' 'glproto' 'dri2proto' 'git')
16 source=(autoconfig-nvidia.patch
20 sha1sums=('0249b892f27243d8fe6fe6d226bf4c2391cedf49'
21 'c94f742d3f9cabf958ae58e4015d9dd185aabedc'
22 '6838fc00ef4618c924a77e0fb03c05346080908a'
23 '993798f3d22ad672d769dae5f48d1fa068d5578f')
25 _gitroot="git://anongit.freedesktop.org/xorg/xserver"
29 msg "Connecting to git.freedesktop.org GIT server...."
31 if [ -d ${_gitname} ]; then
32 cd ${_gitname} && git pull origin
33 msg "The local files are updated."
39 msg "GIT checkout done or server timeout."
42 rm -rf ${_gitname}-build
43 cp -r ${_gitname} ${_gitname}-build
46 msg "Applying Patches..."
48 # Use nouveau/nv/nvidia drivers for nvidia devices
49 patch -Np1 -i ../autoconfig-nvidia.patch
51 ./autogen.sh --prefix=/usr \
63 --enable-install-setuid \
64 --enable-config-udev \
65 --disable-config-dbus \
70 --sysconfdir=/etc/X11 \
71 --localstatedir=/var \
72 --with-xkb-path=/usr/share/X11/xkb \
73 --with-xkb-output=/var/lib/xkb \
74 --with-fontrootdir=/usr/share/fonts
77 # Disable subdirs for make install rule to make splitting easier
78 sed -e 's/^DMX_SUBDIRS =.*/DMX_SUBDIRS =/' \
79 -e 's/^XVFB_SUBDIRS =.*/XVFB_SUBDIRS =/' \
80 -e 's/^XNEST_SUBDIRS =.*/XNEST_SUBDIRS = /' \
81 -e 's/^KDRIVE_SUBDIRS =.*/KDRIVE_SUBDIRS =/' \
85 package_xorg-server-common-git() {
86 pkgdesc="Xorg server common files - Git version"
87 depends=('xkeyboard-config' 'xorg-xkbcomp' 'xorg-setxkbmap' 'xorg-fonts-misc')
88 provides=("xorg-server-common=${pkgver}")
89 conflicts=('xorg-server-common')
92 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-common"
93 install -m644 COPYING "${pkgdir}/usr/share/licenses/xorg-server-common"
95 make -C xkb DESTDIR="${pkgdir}" install-data
97 install -m755 -d "${pkgdir}/usr/share/man/man1"
98 install -m644 man/Xserver.1 "${pkgdir}/usr/share/man/man1/"
100 install -m755 -d "${pkgdir}/usr/lib/xorg"
101 install -m644 dix/protocol.txt "${pkgdir}/usr/lib/xorg/"
104 package_xorg-server-xephyr-git() {
105 pkgdesc="A nested X server that runs as an X application - Git version"
106 depends=(libxfont libgl libgcrypt libxv pixman xorg-server-common)
107 provides=("xorg-server-xephyr=${pkgver}")
108 conflicts=(xorg-server-xephyr)
110 cd ${_gitname}-build/hw/kdrive
111 make DESTDIR="${pkgdir}" install
113 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-xephyr"
114 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-xephyr/COPYING"
117 package_xorg-server-xvfb-git() {
118 pkgdesc="Virtual framebuffer X server - Git version"
119 depends=(libxfont libxdmcp libxau libgcrypt pixman xorg-server-common)
120 provides=("xorg-server-xvfb=${pkgver}")
121 conflicts=(xorg-server-xvfb)
123 cd ${_gitname}-build/hw/vfb
124 make DESTDIR="${pkgdir}" install
126 install -m755 "${srcdir}/xvfb-run" "${pkgdir}/usr/bin/"
127 install -m644 "${srcdir}/xvfb-run.1" "${pkgdir}/usr/share/man/man1/"
129 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-xvfb"
130 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-xvfb/COPYING"
133 package_xorg-server-xnest-git() {
134 pkgdesc="A nested X server that runs as an X application - Git version"
135 depends=(libxfont libxext libgcrypt pixman xorg-server-common)
136 provides=("xorg-server-xnest=${pkgver}")
137 conflicts=(xorg-server-xnest)
139 cd ${_gitname}-build/hw/xnest
140 make DESTDIR="${pkgdir}" install
142 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-xnest"
143 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-xnest/COPYING"
146 package_xorg-server-xdmx-git() {
147 pkgdesc="Distributed Multihead X Server and utilities - Git version"
148 depends=(libxfont libxi libgcrypt libxaw libxrender libdmx libxfixes pixman xorg-server-common)
149 provides=("xorg-server-xdmx=${pkgver}")
150 conflicts=(xorg-server-xdmx)
152 cd ${_gitname}-build/hw/dmx
153 make DESTDIR="${pkgdir}" install
155 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-xdmx"
156 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-xdmx/COPYING"
159 package_xorg-server-devel-git() {
160 pkgdesc="Development files for the X.Org X server - Git version"
161 depends=(xproto randrproto renderproto xextproto inputproto kbproto fontsproto videoproto dri2proto xineramaproto xorg-util-macros pixman libpciaccess)
162 provides=("xorg-server-devel=${pkgver}")
163 conflicts=(xorg-server-devel)
166 make DESTDIR="${pkgdir}" install
168 rm -rf "${pkgdir}/usr/bin"
169 rm -rf "${pkgdir}/usr/share/man"
170 rm -rf "${pkgdir}/usr/share/doc"
171 rm -rf "${pkgdir}/usr/share/X11"
172 rm -rf "${pkgdir}/usr/lib/xorg"
173 rm -rf "${pkgdir}/var"
175 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server-devel"
176 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-devel/COPYING"
179 package_xorg-server-git() {
180 pkgdesc="Xorg X server - Git version"
181 depends=(libxdmcp libxfont udev libpciaccess libdrm pixman libgcrypt libxau xorg-server-common xf86-input-evdev)
182 backup=('etc/X11/xorg.conf.d/10-evdev.conf' 'etc/X11/xorg.conf.d/10-quirks.conf')
183 provides=('x-server' "xorg-server=${pkgver}")
184 conflicts=('xorg-server')
188 make DESTDIR="${pkgdir}" install
190 install -m755 -d "${pkgdir}/etc/X11"
191 mv "${pkgdir}/usr/share/X11/xorg.conf.d" "${pkgdir}/etc/X11/"
192 install -m644 ../10-quirks.conf "${pkgdir}/etc/X11/xorg.conf.d/"
194 rmdir "${pkgdir}/usr/share/X11"
196 # Needed for non-mesa drivers, libgl will restore it
197 mv "${pkgdir}"/usr/lib/xorg/modules/extensions/libglx.{so,xorg}
199 rm -rf "${pkgdir}/var"
201 rm -f "${pkgdir}/usr/share/man/man1/Xserver.1"
202 rm -f "${pkgdir}/usr/lib/xorg/protocol.txt"
204 install -m755 -d "${pkgdir}/usr/share/licenses/xorg-server"
205 ln -sf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server/COPYING"
207 rm -rf "${pkgdir}/usr/lib/pkgconfig"
208 rm -rf "${pkgdir}/usr/include"
209 rm -rf "${pkgdir}/usr/share/aclocal"