From 35d5ba799b59d5a23543ee4f02185ad8763dd7de Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 27 Sep 2010 08:35:05 +0000 Subject: [PATCH] braincurses: initial import (verified compilation). --- braincurses/.footprint | 3 +++ braincurses/.md5sum | 2 ++ braincurses/Pkgfile | 19 +++++++++++++++++++ braincurses/braincurses-0.5b.patch | 10 ++++++++++ 4 files changed, 34 insertions(+) create mode 100644 braincurses/.footprint create mode 100644 braincurses/.md5sum create mode 100644 braincurses/Pkgfile create mode 100644 braincurses/braincurses-0.5b.patch diff --git a/braincurses/.footprint b/braincurses/.footprint new file mode 100644 index 0000000..92e377d --- /dev/null +++ b/braincurses/.footprint @@ -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 index 0000000..da36d9f --- /dev/null +++ b/braincurses/.md5sum @@ -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 index 0000000..6425f85 --- /dev/null +++ b/braincurses/Pkgfile @@ -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 index 0000000..27538f5 --- /dev/null +++ b/braincurses/braincurses-0.5b.patch @@ -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 + #include "windows.h" + + #define DEFAULT_NUM_GUESSES 10 -- 2.26.2