--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/xrick
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man6/
+-rw-r--r-- root/root usr/man/man6/xrick.6.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/xrick/
+-rw-r--r-- root/root usr/share/xrick/data.zip
+-rwxr-xr-x root/root usr/share/xrick/xrick
--- /dev/null
+# Description: Rick Dangerous clone
+# URL: http://www.bigorno.net/xrick/
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: zlib libsdl
+
+name=xrick
+version=021212
+release=1
+source=(http://www.bigorno.net/xrick/xrick-021212.tgz)
+
+build() {
+ cd $name-$version
+
+ sed -i Makefile \
+ -e "s|\$(shell sdl-config --cflags)|-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT|" \
+ -e "s|\$(shell sdl-config --libs)|-L$CLFS/usr/lib -lSDL -lpthread|" \
+ -e "s|CC=gcc|CC=$CC|" \
+ -e "s|CPP=gcc|CPP=$CC|"
+
+ make SDLVERSION=$(pkginfo -r $CLFS -i | grep libsdl | awk '{print $2}')
+
+ install -d $PKG/usr/{bin,share/$name,man/man6}
+ install -m 0755 $name $PKG/usr/share/$name
+ install -m 0644 data.zip $PKG/usr/share/$name
+ install -m 0644 $name.6.gz $PKG/usr/man/man6
+
+ cat > $PKG/usr/bin/$name << __EOF__
+#!/bin/sh
+
+cd /usr/share/$name
+./$name $@
+cd - >/dev/null
+__EOF__
+ chmod +x $PKG/usr/bin/$name
+}