All pastes #759533 Raw Edit

xorg-7.3 Zeq Build

public shellscript v1 · immutable
·published 2007-11-03 07:06 UTC
rendered paste body
#!/bin/sh# Script by Zeqadious# PACKAGES: xorg# DEPENDENCIES: atk,coreutils,expat,fontconfig,freetype,gcc,gconf,glib2,gtk+2#    libdrm,libpng,mesa,ncurses,orbit2,pango,perl,xterm,zlib# HOMEPAGE: http://X.org# COMPILE EXTRA REQUIREMENTS: gperf,netkit-rsh# Notes: I give up. Everything in one package and no more updating easily.#   To all users who need updated drivers; it may be awhile ;)## ------ Verify Scriptif [ "$(id -u)" != "0" ]; then	echo "This script must be run as root!"	exitfi# ------ Helpif [ "${1}" = "--help" ]; then	echo \	"Zenwalk ${0} script:			--nocleanup		Do NOT Cleanup of Post build and Temporary Repo			--install		Run standard make install after each package			--download		Download sources			--help			Displays this help"	exitfi# ------- CredentialsNAME=xorgVERSION=7.3ARCH=${ARCH:-"i486"}BUILD=${BUILD:-1}ZEN=${ZEN:-"48"}EXT=${EXT:-"tgz"}REPO=${REPO:-"${HOME}/package-tree/x"}CFLAGS=${CFLAGS:-"-O2 -pipe -march=i486 -mtune=i686"}SOURCE=(	# Protocols	http://xcb.freedesktop.org/dist/xcb-proto-1.0.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/proto/applewmproto-1.0.3.tar.bz2			# un-needed	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/bigreqsproto-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/compositeproto-0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/damageproto-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/dmxproto-2.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/evieext-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/fixesproto-4.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/fontcacheproto-0.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/fontsproto-2.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/glproto-1.4.8.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/inputproto-1.4.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/kbproto-1.0.3.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/proto/printproto-1.0.3.tar.bz2				# removed xprint support	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/randrproto-1.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/recordproto-1.13.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/renderproto-0.9.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/resourceproto-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/scrnsaverproto-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/trapproto-3.4.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/videoproto-2.2.2.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/proto/windowswmproto-1.0.3.tar.bz2			# un-needed	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xcmiscproto-1.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xextproto-7.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86bigfontproto-1.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86dgaproto-2.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86driproto-2.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86miscproto-0.9.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86rushproto-1.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xf86vidmodeproto-2.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xineramaproto-1.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xproto-7.0.10.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/proto/xproxymanagementprotocol-1.0.2.tar.bz2	# Applications	http://xcb.freedesktop.org/dist/xcb-util-0.2.tar.bz2										# needs gperf	http://xlibs.freedesktop.org/xkbdesc/xkeyboard-config-1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/appres-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/bdftopcf-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/beforelight-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/bitmap-1.0.2.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/compiz-0.5.0.tar.bz2					# keep seperate (for now)	ftp://ftp.freedesktop.org/pub/xorg/individual/app/editres-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/fonttosfnt-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/fslsfonts-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/fstobdf-1.0.2.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/grandr-0.1.tar.bz2					# un-needed?	ftp://ftp.freedesktop.org/pub/xorg/individual/app/iceauth-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/ico-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/lbxproxy-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/listres-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/luit-1.0.2.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/mkcfm-1.0.1.tar.bz2						# depreciated	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/mkcomposecache-1.2.tar.bz2			# depreciated	ftp://ftp.freedesktop.org/pub/xorg/individual/app/mkfontdir-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/mkfontscale-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/oclock-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/proxymngr-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/rendercheck-1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/rgb-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/rstart-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/scripts-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/sessreg-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/setxkbmap-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/showfont-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/smproxy-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/viewres-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/x11perf-1.4.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xauth-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xbacklight-1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xbiff-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xcmsdb-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xconsole-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xcursorgen-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xdbedizzy-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xditview-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xdm-1.1.6.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xdpyinfo-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xdriinfo-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xev-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xeyes-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xf86dga-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfd-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfindproxy-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfontsel-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfs-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfsinfo-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xfwp-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xgamma-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xgc-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xhost-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xinit-1.0.7.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xkbcomp-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xkbevd-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xkbprint-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xkbutils-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xcalc-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xclipboard-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xclock-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xedit-1.0.2.tar.bz2		ftp://ftp.freedesktop.org/pub/xorg/individual/app/xkill-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xload-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xlogo-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xlsatoms-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xlsclients-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xlsfonts-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xmag-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xman-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xmessage-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xmh-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xmodmap-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xmore-1.0.1.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/xphelloworld-1.0.1.tar.bz2				# removed xprint support	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/xplsprinters-1.0.1.tar.bz2				# removed xprint support	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xpr-1.0.1.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/app/xprehashprinterlist-1.0.1.tar.bz2		# removed xprint support	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xprop-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xrandr-1.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xrdb-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xrefresh-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xrx-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xset-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xsetmode-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xsetpointer-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xsetroot-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xsm-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xstdcmap-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xtrap-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xvidtune-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xvinfo-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xwd-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xwininfo-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/app/xwud-1.0.1.tar.bz2	# Utilities	ftp://ftp.freedesktop.org/pub/xorg/individual/util/gccmakedep-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/util/imake-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/util/lndir-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/util/makedepend-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/util/util-macros-1.1.5.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/util/xorg-cf-files-1.0.2.tar.bz2	# Libraries	http://xcb.freedesktop.org/dist/libxcb-1.0.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libAppleWM-1.0.0.tar.bz2				# un-needed	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libFS-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libICE-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libSM-1.0.3.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libWindowsWM-1.0.0.tar.bz2				# un-needed	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libX11-1.1.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXScrnSaver-1.1.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXTrap-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXau-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXaw-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXcomposite-0.4.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXcursor-1.1.9.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXdamage-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXdmcp-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXevie-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXext-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXfixes-4.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXfont-1.3.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXfontcache-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXft-2.1.12.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXi-1.1.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXinerama-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXmu-1.0.3.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXp-1.0.0.tar.bz2						# remove xprint support	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXpm-3.5.7.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXprintAppUtil-1.0.1.tar.bz2			# remove xprint support	# ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXprintUtil-1.0.1.tar.bz2				# remove xprint support	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXrandr-1.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXrender-0.9.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXres-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXt-1.0.5.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXtst-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXv-1.0.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXvMC-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXxf86dga-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXxf86misc-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libXxf86vm-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libdmx-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libfontenc-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/liblbxutil-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/liboldX-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libpciaccess-0.9.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libpthread-stubs-0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libxkbfile-1.0.4.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/libxkbui-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/pixman-0.9.5.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/lib/xtrans-1.0.4.tar.bz2	# Data	ftp://ftp.freedesktop.org/pub/xorg/individual/data/xbitmaps-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/data/xcursor-themes-1.0.1.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/data/xkbdata-1.0.1.tar.bz2					# depreciated	# Xserver	ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-1.4.tar.bz2	# Font Utilities	ftp://ftp.freedesktop.org/pub/xorg/individual/font/encodings-1.0.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/font/font-alias-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/font/font-util-1.0.1.tar.bz2	# Base Fonts	ftp://ftp.freedesktop.org/pub/xorg/individual/font/font-cursor-misc-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/font/font-misc-misc-1.0.0.tar.bz2	# Input Drivers	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-acecad-1.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-aiptek-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-calcomp-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-citron-2.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-digitaledge-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-dmc-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-dynapro-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-elo2300-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-elographics-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-evdev-1.1.5.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-fpit-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-hyperpen-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-jamstudio-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-joystick-1.2.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-keyboard-1.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-magellan-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-magictouch-1.0.0.5.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-microtouch-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-mouse-1.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-mutouch-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-palmax-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-penmount-1.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-spaceorb-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-summa-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-tek4957-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-ur98-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-vmmouse-12.4.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-input-void-1.1.1.tar.bz2	# Video Drivers	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-amd-2.7.7.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-apm-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-ark-0.6.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-ast-0.81.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-ati-6.7.192.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-chips-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-cirrus-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-cyrix-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-dummy-0.2.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-fbdev-0.3.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-glide-1.0.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-glint-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-i128-1.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-i740-1.1.0.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-i810-1.7.4.tar.bz2		# depreciated	# ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-impact-0.2.0.tar.bz2		# depreciated	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-imstt-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-intel-2.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-mga-1.9.99.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-neomagic-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-newport-0.2.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-nsc-2.8.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-nv-2.1.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-rendition-4.1.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-s3-0.5.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-s3virge-1.9.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-savage-2.1.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-siliconmotion-1.5.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-sis-0.9.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-sisusb-0.8.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-tdfx-1.3.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-tga-1.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-trident-1.2.3.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-tseng-1.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-v4l-0.1.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-vermilion-1.0.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-vesa-1.3.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-vga-4.1.0.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-via-0.2.2.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-vmware-10.15.1.tar.bz2	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-voodoo-1.1.1.tar.bz2	# ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-wsfb-0.2.1.tar.bz2		# depreciated	ftp://ftp.freedesktop.org/pub/xorg/individual/driver/xf86-video-xgi-1.5.0.tar.bz2	# Mesa	http://umn.dl.sourceforge.net/sourceforge/mesa3d/MesaLib-7.0.1.tar.bz2)# ------ SetupCWD=$(pwd)TMP=${CWD}/buildPKG=${TMP}/package-${NAME}# command line optionsif [ "${1}" = "--nocleanup" -o "${2}" = "--nocleanup" -o "${3}" = "--nocleanup" ]; then	CLEANUP="0"else	CLEANUP="1"fiif [ "${1}" = "--install" -o "${2}" = "--install" -o "${3}" = "--install" ]; then	INSTALL="1"else	INSTALL="0"fiif [ "${1}" = "--download" -o "${2}" = "--download" -o "${3}" = "--download" ]; then	DOWNLOAD="1"else	DOWNLOAD="0"fi# build locationif [ ! -d ${TMP} ]; then	install -d -m700 ${TMP}fi# repo locationif [ ! -d ${REPO} ]; then	install -v -d -m755 ${REPO}fi# ------ Slack Descinstall -d -m755 ${PKG}/installcat > ${PKG}/install/slack-desc << EoF#      |-----handy-ruler------------------------------------------------------|${NAME}: X11 Protocol Server and Applications${NAME}:${NAME}: This is the X11 Protocol Server and its required applications.  It ${NAME}: provides the required binaries, shared libraries, support files, ${NAME}: drivers, and basic fonts to run X-Server on Linux.${NAME}:EoF# ------ Retrieve & DecompressX=0while [ "${SOURCE[X]}" != "" ]; do	[ "${DOWNLOAD}" = "1" ] &&  \		( $(which wget) -nv -c ${SOURCE[X]} || exit 1 )	X=$((X + 1))donefor file in *.tar.bz2; do	tar jxvf ${file} -C ${TMP}done# ------ Functions_docs() {	# documentation	install -d -m755 ${PKG}/usr/doc/${NAME}-${VERSION}/${1}	cp -v \		AUTHORS* COPYING* INSTALL* NEWS* README* ChangeLog* \	${PKG}/usr/doc/${NAME}-${VERSION}/${1}	# redundant	if [ -d ${PKG}/usr/share/doc ]; then		( cd ${PKG}/usr/share/doc ; mv -v * ${PKG}/usr/doc/${NAME}-${VERSION}/${1} )		rm -rf ${PKG}/usr/share/doc	fi}# ------ Protocolsfor a in \	xcb-proto \	bigreqsproto \	compositeproto \	damageproto \	dmxproto \	evieext \	fixesproto \	fontcacheproto \	fontsproto \	glproto \	inputproto \	kbproto \	randrproto \	recordproto \	renderproto \	resourceproto \	scrnsaverproto \	trapproto \	videoproto \	xcmiscproto \	xextproto \	xf86bigfontproto \	xf86dgaproto \	xf86driproto \	xf86miscproto \	xf86rushproto \	xf86vidmodeproto \	xineramaproto \	xproto \	xproxymanagementprotocol; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Utilitiesfor a in \	xorg-cf-files \	imake \	gccmakedep \	lndir \	makedepend \	util-macros; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	if [ "$a" = "xorg-cf-files" ]; then		sed -i "s@/usr/X11R6@/usr@" site.def		sed -i "s@/usr/X11R6@/usr@" X11.tmpl	fi	./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		--with-config-dir="/usr/lib/X11/config" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Librariesfor a in \	xtrans \	libXau \	libXdmcp \	libpthread-stubs \	libxcb \	libX11 \	libXext \	libICE \	libSM \	libXt \	libXmu \	libXpm \	libXfixes \	libXrender \	libfontenc \	libxkbfile \	libXv \	libFS \	libXScrnSaver \	libXTrap \	libXaw \	libXcomposite \	libXcursor \	libXdamage \	libXevie \	libXfont \	libXfontcache \	libXft \	libXi \	libXinerama \	libXrandr \	libXres \	libXtst \	libXvMC \	libXxf86dga \	libXxf86misc \	libXxf86vm \	libdmx \	liblbxutil \	liboldX \	libpciaccess \	libxkbui \	pixman \	xtrans; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	[ "${a}" = "libxcb" ] && \		( patch -p0 --verbose -i ${CWD}/libxcb-1.0-no-assert-on-lock.patch || exit )		./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		--with-xcb \		${ARCH}-slackware-linux || exit		make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Interdependenciesfor a in \	xbitmaps; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Applicationsfor a in \	luit \	xcursorgen \	xkbcomp \	xcb-util \	appres \	bdftopcf \	beforelight \	bitmap \	editres \	fonttosfnt \	fslsfonts \	fstobdf \	iceauth \	ico \	lbxproxy \	listres \	mkfontdir \	mkfontscale \	oclock \	proxymngr \	rendercheck \	rgb \	rstart \	scripts \	sessreg \	setxkbmap \	showfont \	smproxy \	viewres \	x11perf \	xauth \	xbiff \	xcmsdb \	xclock \	xcalc \	xclipboard \	xconsole \	xdbedizzy \	xditview \	xdm \	xdpyinfo \	xdriinfo \	xev \	xeyes \	xf86dga \	xfd \	xfindproxy \	xfontsel \	xfs \	xfsinfo \	xfwp \	xgamma \	xgc \	xhost \	xinit \	xkbevd \	xkbprint \	xkbutils \	xkill \	xload \	xlogo \	xlsatoms \	xlsclients \	xlsfonts \	xmag \	xman \	xmessage \	xmh \	xmodmap \	xmore \	xpr \	xprop \	xrandr \	xrdb \	xrefresh \	xrx \	xset \	xsetmode \	xsetpointer \	xsetroot \	xsm \	xstdcmap \	xtrap \	xvidtune \	xvinfo \	xwd \	xwininfo \	xwud \	xkeyboard-config; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	case ${a} in		xkeyboard-config)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				--with-xkb-base="/usr/share/X11/xkb" \				--with-xkb-rules-symlink="xorg" \				${ARCH}-slackware-linux || exit			;;		*)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				${ARCH}-slackware-linux || exit			;;	esac   	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Datafor a in \	xcursor-themes; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package 	_docs ${name}done# ------ Xserverfor a in \	xorg-server; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	( cd $TMP ; find . -name "Mesa-*" -exec ln -svf {} Mesa \; )	echo "Building ${name}:"		cd ${TMP}/${name}	# Patches	patch -Np3 -i ${CWD}/xorg-redhat-die-ugly-pattern-die-die-die.patch || exit	# along with xkeyboard-config comes slight breakage	[ -e ${PKG}/usr/share/X11/xkb/compiled ] && rm -vr ${PKG}/usr/share/X11/xkb/compiled	FONTPATH="/usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/TTF,/usr/share/fonts/Type1"		# bootstrap	# aclocal	# autoconf	# automake	# xorg		./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir="/etc/X11" \		--localstatedir="/var" \		--mandir="/usr/man" \		--infodir="/usr/info" \		--enable-static="no" \		--enable-shared="yes" \		--enable-ipv6 \		--enable-dri \		--enable-dmx \		--enable-xvfb \		--enable-xnest \		--enable-composite \		--enable-xcsecurity \		--enable-xorg \		--enable-xtrap \		--enable-xevie \		--enable-xglx \		--enable-xkb \		--enable-xorgcfg \		--enable-fontcache \		--enable-install-setuid \		--disable-xprint \		--with-mesa-source="${TMP}/Mesa" \		--with-fontdir="/usr/share/fonts" \		--with-default-font-path="${FONTPATH}" \		--with-module-dir="/usr/lib/X11/modules" \		--with-dri-driver-path="/usr/lib/X11/modules/dri" \		--with-xkb-path="/usr/share/X11/xkb" \		--with-xkb-output="/usr/share/X11/xkb/compiled" \		--with-os-name="Zenwalk" \		--with-os-vender="Zenwalk" \		--with-vender-web="http://www.zenwalk.org" \		--with-builder-addr="zenwalk-main@lists.zenwalk.org" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi		# make nvidia prop drivers not interfere with xorg	( 		cd ${PKG}/usr/lib/X11/modules/extensions		mv -v libGLcore.so libGLcore.xorg		mv -v libglx.so libglx.xorg		ln -sv libGLcore.xorg libGLcore.so		ln -sv libglx.xorg libglx.so	)		# $1 = sub_package	_docs ${name}done# ------ Fonts & Utilitiesfor a in \	encodings \	font-alias \	font-util \	font-cursor-misc \	font-misc-misc; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	case ${a} in		font-util)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				--with-mapdir="/usr/share/fonts/util" \				${ARCH}-slackware-linux || exit			;;		encodings)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				--with-encodingsdir="/usr/share/fonts/encodings" || exit			;;		font-alias)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				--with-top-fontdir="/usr/share/fonts" || exit			;;		*)			./configure \				--prefix=/usr \				--program-prefix="" \				--program-suffix="" \				--sysconfdir=/etc \				--localstatedir=/var \				--mandir=/usr/man \				--infodir=/usr/info \				--enable-static="no" \				--enable-shared="yes" \				--with-mapdir="/usr/share/fonts/util" \				--with-fontdir="/usr/share/fonts/misc" || exit			;;			esac	make || exit	make install DESTDIR=${PKG} || exit	if [ "${INSTALL}" = "1" ]; then		make install || exit	fi	# $1 = sub_package	_docs ${name}done# ------ Input Drivers# Broken:for a in \	xf86-input-acecad \	xf86-input-aiptek \	xf86-input-digitaledge \	xf86-input-dmc \	xf86-input-elographics \	xf86-input-evdev \	xf86-input-fpit \	xf86-input-hyperpen \	xf86-input-jamstudio \	xf86-input-joystick \	xf86-input-keyboard \	xf86-input-magictouch \	xf86-input-mouse \	xf86-input-mutouch \	xf86-input-palmax \	xf86-input-summa \	xf86-input-tek4957 \	xf86-input-ur98 \	xf86-input-vmmouse \	xf86-input-calcomp \	xf86-input-citron \	xf86-input-dynapro \	xf86-input-elo2300 \	xf86-input-magellan \	xf86-input-microtouch \	xf86-input-penmount \	xf86-input-spaceorb \	xf86-input-void; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}	./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		--with-xorg-module-dir="/usr/lib/X11/modules" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	# $1 = sub_package	_docs ${name}done# ------ Video Drivers# Needs glide installed first:#  xf86-video-glidefor a in \	xf86-video-amd \	xf86-video-apm \	xf86-video-ark \	xf86-video-ast \	xf86-video-ati \	xf86-video-chips \	xf86-video-cirrus \	xf86-video-cyrix \	xf86-video-dummy \	xf86-video-fbdev \	xf86-video-glint \	xf86-video-i128 \	xf86-video-i740 \	xf86-video-imstt \	xf86-video-intel \	xf86-video-mga \	xf86-video-neomagic \	xf86-video-newport \	xf86-video-nsc \	xf86-video-nv \	xf86-video-rendition \	xf86-video-s3 \	xf86-video-s3virge \	xf86-video-savage \	xf86-video-siliconmotion \	xf86-video-sis \	xf86-video-sisusb \	xf86-video-tdfx \	xf86-video-tga \	xf86-video-trident \	xf86-video-tseng \	xf86-video-v4l \	xf86-video-vermilion \	xf86-video-vesa \	xf86-video-vga \	xf86-video-via \	xf86-video-vmware \	xf86-video-voodoo \	xf86-video-xgi; do	name=$( cd ${TMP} ; find . -type d -name "${a}-*" -maxdepth 1 | sed s@./@@g )	echo "Building ${name}:"	cd ${TMP}/${name}		./configure \		--prefix=/usr \		--program-prefix="" \		--program-suffix="" \		--sysconfdir=/etc \		--localstatedir=/var \		--mandir=/usr/man \		--infodir=/usr/info \		--enable-static="no" \		--enable-shared="yes" \		--with-xorg-module-dir="/usr/lib/X11/modules" \		${ARCH}-slackware-linux || exit	make || exit	make install DESTDIR=${PKG} || exit	# $1 = sub_package	_docs ${name}done# ------ Zenify# fix /usr/X11 references to Xreset and Xstartupsed -i -e s@/usr/X11R6@/usr@g -e s@/usr/X11@/usr@g ${PKG}/usr/lib/X11/xdm/Xresetsed -i -e s@/usr/X11R6@/usr@g -e s@/usr/X11@/usr@g ${PKG}/usr/lib/X11/xdm/Xstartup# reset all symlinks for xorg and move data proper locations if neededinstall -v -d -m755 ${PKG}/etc/X11install -v -d -m755 ${PKG}/var/libfor dir in fs lbxproxy proxymngr rstart xdm xinit xserver xsm; do	mv -v ${PKG}/usr/lib/X11/${dir} ${PKG}/etc/X11	ln -sfv ../../../../etc/X11/${dir} ${PKG}/usr/lib/X11donefor dir in app-defaults xkb; do	mv -v ${PKG}/usr/share/X11/${dir} ${PKG}/etc/X11	ln -sfv ../../../../etc/X11/${dir} ${PKG}/usr/share/X11donefor dir in compiled; do	mv -v ${PKG}/etc/X11/xkb/${dir} ${PKG}/var/lib/xkb	ln -sfv ../../../../var/lib/xkb ${PKG}/etc/X11/xkb/compileddone# slackware fonts compat:symlinkln -svf ../../../share/fonts ${PKG}/usr/lib/X11/fonts# remove possible redundant file generated filesfor fontdir in cyrillic OTF TTF 100dpi 75dpi misc Type1 Speedo util encodings; do	[ -f ${PKG}/usr/share/fonts/${fontdir}/fonts.dir ] && rm -v ${PKG}/usr/share/fonts/${fontdir}/fonts.dir	[ -f ${PKG}/usr/share/fonts/${fontdir}/fonts.scale ] && rm -v ${PKG}/usr/share/fonts/${fontdir}/fonts.scaledone# buildscriptsinstall -d -m755 ${PKG}/usr/src/${NAME}-${VERSION}install -m755 ${CWD}/${0} ${PKG}/usr/src/${NAME}-${VERSION}/build-${NAME}.sh# other filesinstall -m644 ${CWD}/*.diff ${PKG}/usr/src/${NAME}-${VERSION}install -m644 ${CWD}/*.patch ${PKG}/usr/src/${NAME}-${VERSION}# ------ Finalize# stripfind ${PKG} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/nullfind ${PKG} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null# gzip manfind ${PKG}/usr/man -type f -exec gzip -9f {} \;# gzip infofind ${PKG}/usr/info -type f -exec gzip -9f {} \;# Fix Permissionschown -R root:root ${PKG}find ${PKG} -perm 664 -exec chmod 644 {} \;find ${PKG} -perm 600 -exec chmod 644 {} \;find ${PKG} -perm 444 -exec chmod 644 {} \;find ${PKG} -perm 400 -exec chmod 644 {} \;find ${PKG} -perm 440 -exec chmod 644 {} \;find ${PKG} -perm 777 -exec chmod 755 {} \;find ${PKG} -perm 775 -exec chmod 755 {} \;find ${PKG} -perm 511 -exec chmod 755 {} \;find ${PKG} -perm 711 -exec chmod 755 {} \;find ${PKG} -perm 555 -exec chmod 755 {} \;find ${PKG}/usr/doc -type f -exec chmod 644 {} \;# setuid Xorgfind ${PKG} -name "Xorg" -exec chmod +s {} \;# ------ Doinst.shcat > ${PKG}/install/doinst.sh << "EoF"# jp's backwards compat code( cd usr ; unlink X11  1>&2 2>/dev/null || rm -rf X11 )( cd usr ; mkdir X11 )( cd usr/X11 ; unlink bin  1>&2 2>/dev/null || rm -rf bin )( cd usr/X11 ; ln -sf ../bin bin )( cd usr/X11 ; unlink include  1>&2 2>/dev/null || rm -rf include )( cd usr/X11 ; ln -sf ../include include )( cd usr/X11 ; unlink lib  1>&2 2>/dev/null || rm -rf lib )( cd usr/X11 ; ln -sf ../lib lib )( cd usr/X11 ; unlink libexec  1>&2 2>/dev/null || rm -rf libexec )( cd usr/X11 ; ln -sf ../libexec libexec )( cd usr/X11 ; unlink man  1>&2 2>/dev/null || rm -rf man )( cd usr/X11 ; ln -sf ../man man )( cd usr/X11 ; unlink share  1>&2 2>/dev/null || rm -rf share )( cd usr/X11 ; ln -sf ../share share )( cd usr ; unlink X11R6  1>&2 2>/dev/null || rm -rf X11R6 )( cd usr ; ln -sf X11 X11R6 )# font caching ( generate fonts.dir and fonts.scale )for fontdir in cyrillic OTF TTF 100dpi 75dpi misc Type1 Speedo util encodings; do	[ -d usr/share/fonts/${fontdir} ] && \	( 		[ -x usr/bin/mkfontscale ] && ( chroot . usr/bin/mkfontscale usr/share/fonts/${fontdir} > /dev/null 2>&1 )		[ -x usr/bin/mkfontdir ] && ( chroot . usr/bin/mkfontdir usr/share/fonts/${fontdir} > /dev/null 2>&1 )	)done# attempt to fix broken font caches if they existif [ -d var/cache/fontconfig ]; then	rm -rf var/cache/fontconfig	mkdir -p var/cache/fontconfigfi[ -x usr/bin/fc-cache ] && ( chroot . usr/bin/fc-cache -rf > /dev/null 2>&1 )EoF# ------ Createcd ${PKG}# build packagemakepkg -l y -c n -p ${REPO}/${NAME}-${VERSION}-${ARCH}-${ZEN}.${BUILD}.${EXT}# build md5 checksum( cd ${REPO} ; md5sum ${NAME}-${VERSION}-${ARCH}-${ZEN}.${BUILD}.${EXT} \	> ${NAME}-${VERSION}-${ARCH}-${ZEN}.${BUILD}.md5 )# build dep file(	cd ${REPO}	EXCLUDE="xterm" \	requiredbuilder -z ${NAME}-${VERSION}-${ARCH}-${ZEN}.${BUILD}.${EXT} \		> ${NAME}-${VERSION}-${ARCH}-${ZEN}.${BUILD}.dep)# ------ Cleanupif [ "${CLEANUP}" = "1" ]; then	rm -rf ${TMP}fi