--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/prboom
+-rwxr-xr-x root/root usr/bin/prboom-game-server
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man5/
+-rw-r--r-- root/root usr/man/man5/boom.cfg.5.gz
+drwxr-xr-x root/root usr/man/man6/
+-rw-r--r-- root/root usr/man/man6/prboom-game-server.6.gz
+-rw-r--r-- root/root usr/man/man6/prboom.6.gz
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/prboom/
+-rw-r--r-- root/root usr/share/prboom/prboom.wad
--- /dev/null
+# Description: Pure Doom port with the highest compatibility to the major Doom versions
+# URL: http://prboom.sourceforge.net/
+# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
+# Depends on: sdl_net
+
+
+name=prboom
+version=2.5.0
+release=1
+source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
+
+build() {
+ cd $name-$version
+
+ export SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT"
+ export SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net"
+
+ echo "ac_cv_type_uid_t=yes" > config.cache
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --with-waddir=/usr/share/$name \
+ --disable-debugger \
+ --disable-i386-asm \
+ --disable-gl \
+ --disable-sdltest \
+ --x-libraries=/usr/lib \
+ --with-sdl-prefix=$CLFS/usr \
+ --without-mixer \
+ --cache-file=config.cache
+
+ find . -type f -name Makefile -exec \
+ sed -i {} \
+ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
+ -e "s|SDL_CFLAGS = .*|SDL_CFLAGS = $SDL_CFLAGS|" \
+ -e "s|-I/usr|-I$CLFS/usr|" \;
+
+ make
+ make DESTDIR=$PKG install
+
+ mv $PKG/usr/{games,bin}
+ rm -rf $PKG/usr/share/doc
+}