--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/X11/
+drwxr-xr-x root/root usr/include/X11/extensions/
+-rw-r--r-- root/root usr/include/X11/extensions/XRes.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libXRes.a
+-rwxr-xr-x root/root usr/lib/libXRes.la
+lrwxrwxrwx root/root usr/lib/libXRes.so -> libXRes.so.1.0.0
+lrwxrwxrwx root/root usr/lib/libXRes.so.1 -> libXRes.so.1.0.0
+-rwxr-xr-x root/root usr/lib/libXRes.so.1.0.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/xres.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man3/
+-rw-r--r-- root/root usr/man/man3/XRes.3.gz
+-rw-r--r-- root/root usr/man/man3/XResQueryClientPixmapBytes.3.gz
+-rw-r--r-- root/root usr/man/man3/XResQueryClientResources.3.gz
+-rw-r--r-- root/root usr/man/man3/XResQueryClients.3.gz
+-rw-r--r-- root/root usr/man/man3/XResQueryExtension.3.gz
+-rw-r--r-- root/root usr/man/man3/XResQueryVersion.3.gz
--- /dev/null
+# Depends on: xorg-libx11, xorg-libxext, xorg-resourceproto
+# Description: X Resource extension client library
+# URL: http://xorg.freedesktop.org
+# Maintainer: Tilman Sauerbeck tilman at crux dot nu
+# Arch Maintainer System Team crux-arm at mikeux dot dyndns dot org
+# Depends on: xorg-libx11 xorg-libxext xorg-resourceproto
+
+name=xorg-libxres
+version=1.0.4
+release=1
+source=(http://xorg.freedesktop.org/releases/individual/lib/libXres-$version.tar.bz2)
+
+build() {
+ cd libXres-$version
+
+ export X11_LIBS="-L$CLFS/usr/lib -lpthread-stubs"
+ export X11_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
+ export XRES_LIBS="$X11_LIBS"
+ export XRES_CFLAGS="$X11_CFLAGS"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --enable-malloc0returnsnull
+
+ make
+ make DESTDIR=$PKG install
+}