--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/giblib-config
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/giblib/
+-rw-r--r-- root/root usr/include/giblib/gib_btree.h
+-rw-r--r-- root/root usr/include/giblib/gib_debug.h
+-rw-r--r-- root/root usr/include/giblib/gib_hash.h
+-rw-r--r-- root/root usr/include/giblib/gib_imlib.h
+-rw-r--r-- root/root usr/include/giblib/gib_list.h
+-rw-r--r-- root/root usr/include/giblib/gib_queue.h
+-rw-r--r-- root/root usr/include/giblib/gib_stack.h
+-rw-r--r-- root/root usr/include/giblib/gib_style.h
+-rw-r--r-- root/root usr/include/giblib/gib_utils.h
+-rw-r--r-- root/root usr/include/giblib/giblib.h
+-rw-r--r-- root/root usr/include/giblib/giblib_config.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libgiblib.a
+-rwxr-xr-x root/root usr/lib/libgiblib.la
+lrwxrwxrwx root/root usr/lib/libgiblib.so -> libgiblib.so.1.0.6
+lrwxrwxrwx root/root usr/lib/libgiblib.so.1 -> libgiblib.so.1.0.6
+-rwxr-xr-x root/root usr/lib/libgiblib.so.1.0.6
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/giblib.pc
--- /dev/null
+# Description: Library for doubly linked lists and a wrapper for imlib2.
+# URL: http://freshmeat.net/projects/giblib/
+# Packager: Mark Rosenstand, mark at borkware dot net
+# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: imlib2
+
+name=giblib
+version=1.2.4
+release=1
+source=(http://linuxbrit.co.uk/downloads/$name-$version.tar.gz)
+
+build() {
+ cd giblib-$version
+
+ export CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
+
+ sed -i configure \
+ -e "s|^IMLIB_CFLAGS=.*|IMLIB_CFLAGS=\"-I$CLFS/usr/include -I$CLFS/usr/include/freetype2\"|" \
+ -e "s|^IMLIB_LIBS=.*|IMLIB_LIBS=\"-L$CLFS/usr/lib -lImlib2 -lfreetype -lz -lX11 -lXext -ldl -lm\"|"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --with-imlib2-prefix=$CLFS/usr
+
+ make
+ make DESTDIR=$PKG install
+ rm -r $PKG/usr/doc
+}