# Description: open-source port of the DOS shoot-em-up Tyrian # URL: http://code.google.com/p/opentyrian # Packager: Jose V Beneyto, sepen at crux dot nu # Maintainer: Jose V Beneyto, sepen at crux dot nu # Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu # Depends on: sdl_net name=opentyrian version=2.1 release=2 source=(http://mikeux.dyndns.org/crux/files/$name-$version.tar.bz2 \ http://camanis.net/tyrian/tyrian21.zip) build() { cd $name-$version # fix default screen scaler and resolution sed -i src/video_scale.c -e 's|int scale, scaler = 2|int scale, scaler = 0|' # fix var's assingement in Makefile sed -i Makefile -e 's|:=|=|' make \ CC="$CC" CFLAGS="$CFLAGS -fgnu89-inline" STRIP="$STRIP" \ SDL_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" \ SDL_LDLIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lSDL_net" install -d $PKG/usr/{bin,share/$name/data} install -D -m 0755 $name $PKG/usr/share/$name/$name rm -f $SRC/tyrian21/*.exe install -m 0644 $SRC/tyrian21/* $PKG/usr/share/$name/data/ cat > $PKG/usr/bin/$name << __EOF__ #!/bin/sh cd /usr/share/$name ./$name \$@ cd - >/dev/null # End of file __EOF__ chmod +x $PKG/usr/bin/$name }