CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
xrick: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Fri, 8 Jan 2010 11:46:40 +0000 (12:46 +0100)
committerJose V Beneyto <sepen@crux.nu>
Fri, 8 Jan 2010 11:46:40 +0000 (12:46 +0100)
xrick/.footprint [new file with mode: 0644]
xrick/.md5sum [new file with mode: 0644]
xrick/Pkgfile [new file with mode: 0644]

diff --git a/xrick/.footprint b/xrick/.footprint
new file mode 100644 (file)
index 0000000..4210c38
--- /dev/null
@@ -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 (file)
index 0000000..8cd2f3b
--- /dev/null
@@ -0,0 +1 @@
+615190051481266710cb43ecd1fe930c  xrick-021212.tgz
diff --git a/xrick/Pkgfile b/xrick/Pkgfile
new file mode 100644 (file)
index 0000000..e396d1c
--- /dev/null
@@ -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 
+}