1 # Description: Rick Dangerous clone
2 # URL: http://www.bigorno.net/xrick/
3 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
4 # Depends on: zlib libsdl
9 source=(http://www.bigorno.net/xrick/xrick-021212.tgz)
15 -e "s|\$(shell sdl-config --cflags)|-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT|" \
16 -e "s|\$(shell sdl-config --libs)|-L$CLFS/usr/lib -lSDL -lpthread|" \
17 -e "s|CC=gcc|CC=$CC|" \
18 -e "s|CPP=gcc|CPP=$CC|"
20 make SDLVERSION=$(pkginfo -r $CLFS -i | grep libsdl | awk '{print $2}')
22 install -d $PKG/usr/{bin,share/$name,man/man6}
23 install -m 0755 $name $PKG/usr/share/$name
24 install -m 0644 data.zip $PKG/usr/share/$name
25 install -m 0644 $name.6.gz $PKG/usr/man/man6
27 cat > $PKG/usr/bin/$name << __EOF__
34 chmod +x $PKG/usr/bin/$name