X-Git-Url: http://gitweb/?a=blobdiff_plain;f=opentyrian%2FPkgfile;h=4f8897c3ff7128940f43de97591a7d7528e7109c;hb=aae3d2e73427c75eca62467d7642aadd283253e0;hp=91c23b4fbe0cb68c026cd8847a8f8676a7ad9ed4;hpb=df4c7ac2c040f4d527cb2b59a2d38f943042eb50;p=attic%2Fports%2Fgames-cross.git diff --git a/opentyrian/Pkgfile b/opentyrian/Pkgfile index 91c23b4..4f8897c 100644 --- a/opentyrian/Pkgfile +++ b/opentyrian/Pkgfile @@ -7,14 +7,18 @@ name=opentyrian version=2.1 -release=1 +release=2 source=(http://mikeux.dyndns.org/crux/files/$name-$version.tar.bz2 \ http://camanis.net/tyrian/tyrian21.zip) build() { cd $name-$version - sed 's|:=|=|g' -i Makefile + # 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" \ @@ -24,7 +28,7 @@ build() { install -D -m 0755 $name $PKG/usr/share/$name/$name rm -f $SRC/tyrian21/*.exe - mv $SRC/tyrian21/* $PKG/usr/share/$name/data/ + install -m 0644 $SRC/tyrian21/* $PKG/usr/share/$name/data/ cat > $PKG/usr/bin/$name << __EOF__ #!/bin/sh