Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

139 lines (114 sloc) 5.495 kB
# Maintainer: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
# Original Maintainer: Jan de Groot <jgc@archlinux.org>
# This package is modified from the Arch Linux xorg-server package.
# Changes:
# - Only contains the xorg-server and xorg-server-devel packages
# - Adds 500_pointer_barrier_thresholds.diff patch from Ubuntu
pkgbase=xorg-server
pkgname=('xorg-server-ubuntu' 'xorg-server-devel-ubuntu')
pkgver=1.13.0
pkgrel=100
arch=('i686' 'x86_64')
license=('custom')
url="http://xorg.freedesktop.org"
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' 'xorg-util-macros' 'xorg-font-util' 'glproto' 'dri2proto' 'udev' 'libgcrypt')
options=('!libtool')
source=("${url}/releases/individual/xserver/${pkgbase}-${pkgver}.tar.bz2"
'autoconfig-nvidia.patch'
'autoconfig-sis.patch'
'10-quirks.conf'
'500_pointer_barrier_thresholds.diff')
sha512sums=('840a341f796386156ff4eb599c4b3b96090d3fda9cdbe70c45ff175c8d01b62cb9ba04a6c73ddde90996f8b96be1a3d925c9803a3b629cb4bc317374b7b1e014'
'8e0dc38e28930e1a2682d25608d62d5e8cae9360c677d44760840b2424bf00d30ee434cb141b090dc37da1458fe619011baf375b32f250bd2b46ca536ac92de6'
'3211dbc6d8a84f3f6a77230a8e5fe13355b441768d864c2b3037b893be39f7b8d581c2a5db1e04f399ce19c4ced973b64eaad563d970ee9c7b8a93cb23a0aa18'
'9a1a5568be751435daea720cfc4bad209d62545cc10ea2f49113c41669c8130809a680492256ef331757fe8539d2e0e5e9e67a36f7c48c8d92d9b3e957d28fa2'
'b97e38e19f07447deac2cbc2d2cdb8bf1fda569954ac187dae50cdd71ad3e118796b9c75872b782883cfa974b37215612f6e1630559e6a0af028d14e28eca78f')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
# Use nouveau/nv/nvidia drivers for nvidia devices
patch -Np1 -i "${srcdir}/autoconfig-nvidia.patch"
# Use unofficial imedia SiS driver for supported SiS devices
patch -Np0 -i "${srcdir}/autoconfig-sis.patch"
# Patch from Ubuntu for XFixes protocol version 6
# (needed for revealing the launcher in Unity)
patch -Np1 -i "${srcdir}/500_pointer_barrier_thresholds.diff" || :
autoreconf -vfi
./configure \
--prefix=/usr \
--enable-ipv6 \
--enable-dri \
--enable-dmx \
--enable-xvfb \
--enable-xnest \
--enable-composite \
--enable-xcsecurity \
--enable-xorg \
--enable-xephyr \
--enable-glx-tls \
--enable-kdrive \
--enable-kdrive-evdev \
--enable-kdrive-kbd \
--enable-kdrive-mouse \
--enable-install-setuid \
--enable-config-udev \
--disable-config-dbus \
--enable-record \
--disable-xfbdev \
--disable-xfake \
--disable-static \
--sysconfdir=/etc/X11 \
--localstatedir=/var \
--with-xkb-path=/usr/share/X11/xkb \
--with-xkb-output=/var/lib/xkb \
--with-fontrootdir=/usr/share/fonts
make ${MAKEFLAGS}
# Disable subdirs for make install rule to make splitting easier
sed -e 's/^DMX_SUBDIRS =.*/DMX_SUBDIRS =/' \
-e 's/^XVFB_SUBDIRS =.*/XVFB_SUBDIRS =/' \
-e 's/^XNEST_SUBDIRS =.*/XNEST_SUBDIRS = /' \
-e 's/^KDRIVE_SUBDIRS =.*/KDRIVE_SUBDIRS =/' \
-i hw/Makefile
}
package_xorg-server-ubuntu() {
pkgdesc="Xorg X server"
depends=('libdrm' 'pixman' 'libgcrypt' 'xorg-server-common' 'xf86-input-evdev')
backup=('etc/X11/xorg.conf.d/10-evdev.conf' 'etc/X11/xorg.conf.d/10-quirks.conf')
provides=('x-server' "xorg-server=${pkgver}")
conflicts=('nvidia-utils<=290.10' 'xorg-server')
groups=('xorg')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -dm755 "${pkgdir}/etc/X11"
mv "${pkgdir}/usr/share/X11/xorg.conf.d" "${pkgdir}/etc/X11/"
install -m644 "${srcdir}/10-quirks.conf" "${pkgdir}/etc/X11/xorg.conf.d/"
rmdir -v "${pkgdir}/usr/share/X11"
# Needed for non-mesa drivers, libgl will restore it
mv -v "${pkgdir}/usr/lib/xorg/modules/extensions/libglx.so" \
"${pkgdir}/usr/lib/xorg/modules/extensions/libglx.xorg"
rm -rvf "${pkgdir}/var"
rm -vf "${pkgdir}/usr/share/man/man1/Xserver.1"
rm -vf "${pkgdir}/usr/lib/xorg/protocol.txt"
install -dm755 "${pkgdir}/usr/share/licenses/xorg-server"
ln -svf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server/COPYING"
rm -rvf "${pkgdir}/usr/lib/pkgconfig"
rm -rvf "${pkgdir}/usr/include"
rm -rvf "${pkgdir}/usr/share/aclocal"
}
package_xorg-server-devel-ubuntu() {
arch=('any')
pkgdesc="Development files for the X.Org X server"
depends=('xproto' 'randrproto' 'renderproto' 'xextproto' 'inputproto' 'kbproto' 'fontsproto' 'videoproto' 'dri2proto' 'xineramaproto' 'xorg-util-macros' 'pixman' 'libpciaccess')
provides=("xorg-server-devel=${pkgver}")
conflicts=('xorg-server-devel')
cd "${srcdir}/${pkgbase}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rvf "${pkgdir}/usr/bin"
rm -rvf "${pkgdir}/usr/share/man"
rm -rvf "${pkgdir}/usr/share/doc"
rm -rvf "${pkgdir}/usr/share/X11"
rm -rvf "${pkgdir}/usr/lib/xorg"
rm -rvf "${pkgdir}/var"
install -dm755 "${pkgdir}/usr/share/licenses/xorg-server-devel"
ln -svf ../xorg-server-common/COPYING "${pkgdir}/usr/share/licenses/xorg-server-devel/COPYING"
}
# vim:set ts=2 sw=2 et:
Jump to Line
Something went wrong with that request. Please try again.