CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
braincurses: initial import (verified compilation).
authorVictor Martinez <pitillo@ono.com>
Mon, 27 Sep 2010 08:35:05 +0000 (08:35 +0000)
committerVictor Martinez <pitillo@ono.com>
Mon, 27 Sep 2010 08:35:05 +0000 (08:35 +0000)
braincurses/.footprint [new file with mode: 0644]
braincurses/.md5sum [new file with mode: 0644]
braincurses/Pkgfile [new file with mode: 0644]
braincurses/braincurses-0.5b.patch [new file with mode: 0644]

diff --git a/braincurses/.footprint b/braincurses/.footprint
new file mode 100644 (file)
index 0000000..92e377d
--- /dev/null
@@ -0,0 +1,3 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/braincurses
diff --git a/braincurses/.md5sum b/braincurses/.md5sum
new file mode 100644 (file)
index 0000000..da36d9f
--- /dev/null
@@ -0,0 +1,2 @@
+6cf2a2a466aa05b5cd06d2e03836fa6b  braincurses-0.5b.patch
+fc58964e8ba5c9532458604c091f671f  braincurses-0.5b.tar.gz
diff --git a/braincurses/Pkgfile b/braincurses/Pkgfile
new file mode 100644 (file)
index 0000000..6425f85
--- /dev/null
@@ -0,0 +1,19 @@
+# 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
+}
diff --git a/braincurses/braincurses-0.5b.patch b/braincurses/braincurses-0.5b.patch
new file mode 100644 (file)
index 0000000..27538f5
--- /dev/null
@@ -0,0 +1,10 @@
+--- 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