From: Jose V Beneyto Date: Fri, 8 Jan 2010 11:46:40 +0000 (+0100) Subject: xrick: initial import (verified compilation) X-Git-Url: http://gitweb/?a=commitdiff_plain;h=94db4c7f56ec6ea1ff88a8d71c4e56e8c8bc64fb;p=attic%2Fports%2Fgames-cross.git xrick: initial import (verified compilation) --- diff --git a/xrick/.footprint b/xrick/.footprint new file mode 100644 index 0000000..4210c38 --- /dev/null +++ b/xrick/.footprint @@ -0,0 +1,10 @@ +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 diff --git a/xrick/.md5sum b/xrick/.md5sum new file mode 100644 index 0000000..8cd2f3b --- /dev/null +++ b/xrick/.md5sum @@ -0,0 +1 @@ +615190051481266710cb43ecd1fe930c xrick-021212.tgz diff --git a/xrick/Pkgfile b/xrick/Pkgfile new file mode 100644 index 0000000..e396d1c --- /dev/null +++ b/xrick/Pkgfile @@ -0,0 +1,35 @@ +# 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 +}