+# Description: X Damage extension client library
+# URL: http://xorg.freedesktop.org
+# Maintainer: Tilman Sauerbeck, tilman at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: xorg-libx11 xorg-fixesproto xorg-libxfixes xorg-xextproto xorg-damageproto
+
+name=xorg-libxdamage
+version=1.1.2
+release=1
+source=(http://xorg.freedesktop.org/releases/individual/lib/libXdamage-$version.tar.bz2)
+
+build() {
+ cd libXdamage-$version
+
+ export DEFAULT_LIBS="-L$CLFS/usr/lib"
+ export DEFAULT_CFLAGS="-I$CLFS/usr/include"
+ export XDAMAGE_LIBS="$DEFAULT_LIBS"
+ export XDAMAGE_CFLAGS="$DEFAULT_CFLAGS"
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr
+
+ make
+ make DESTDIR=$PKG install
+}