--- /dev/null
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/braincurses
--- /dev/null
+# Description: A clone of the Mastermind game made with ncurses
+# URL: http://sourceforge.net/projects/braincurses/
+# Maintainer: Victor Martinez, pitillo at ono dot com
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: ncurses
+
+name=braincurses
+version=0.5b
+release=1
+source=(http://dl.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.gz \
+ braincurses-0.5b.patch)
+
+build() {
+ cd $name-$version
+ patch -p0 -i $SRC/$name-$version.patch
+ sed "s|\${CURSES_LIBS}|\${CURSES_LIBS} -lstdc++|g" -i Makefile
+ make CC="$CC"
+ install -D -m 0755 $name $PKG/usr/bin/$name
+}
--- /dev/null
+--- curses/windows.cpp_orig 2010-09-27 08:28:46.000000000 +0000
++++ curses/windows.cpp 2010-09-27 08:29:04.000000000 +0000
+@@ -6,6 +6,7 @@
+ * ncurses implementation of braincurses written by Brian Derr
+ */
+
++#include <cstring>
+ #include "windows.h"
+
+ #define DEFAULT_NUM_GUESSES 10