mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
games/xye: Updated for version 0.12.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
fd73b2e190
commit
d57f5cb1d4
3 changed files with 12 additions and 49 deletions
|
@ -1,35 +0,0 @@
|
||||||
diff -Naur xye-0.12.0.orig/src/editorsave.cpp xye-0.12.0/src/editorsave.cpp
|
|
||||||
--- xye-0.12.0.orig/src/editorsave.cpp 2011-10-29 21:57:28.000000000 +0000
|
|
||||||
+++ xye-0.12.0/src/editorsave.cpp 2012-08-05 10:34:00.131028629 +0000
|
|
||||||
@@ -662,16 +662,16 @@
|
|
||||||
}
|
|
||||||
saveColorStuff(file, board);
|
|
||||||
|
|
||||||
- int i,j;
|
|
||||||
+ int j,k;
|
|
||||||
file << "\t<ground>\n";
|
|
||||||
resetSavedPosition();
|
|
||||||
- for (i=0;i<XYE_HORZ;i++) for (j=0;j<XYE_VERT;j++) saveGroundObject(file,editor::board->objects[i][j],i,XYE_VERT-j-1);
|
|
||||||
+ for (j=0;j<XYE_HORZ;j++) for (k=0;k<XYE_VERT;k++) saveGroundObject(file,editor::board->objects[j][k],j,XYE_VERT-k-1);
|
|
||||||
file << "\t</ground>\n";
|
|
||||||
file << "\t<objects>\n";
|
|
||||||
resetSavedPosition();
|
|
||||||
- for (i=0;i<XYE_HORZ;i++) for (j=0;j<XYE_VERT;j++)
|
|
||||||
+ for (j=0;j<XYE_HORZ;j++) for (k=0;k<XYE_VERT;k++)
|
|
||||||
{
|
|
||||||
- saveNormalObject(file,editor::board->objects[i][j],i,XYE_VERT-j-1);
|
|
||||||
+ saveNormalObject(file,editor::board->objects[j][k],j,XYE_VERT-k-1);
|
|
||||||
}
|
|
||||||
savePortals( file, editor::board);
|
|
||||||
|
|
||||||
diff -Naur xye-0.12.0.orig/src/gen.cpp xye-0.12.0/src/gen.cpp
|
|
||||||
--- xye-0.12.0.orig/src/gen.cpp 2011-10-07 19:00:29.000000000 +0000
|
|
||||||
+++ xye-0.12.0/src/gen.cpp 2012-08-05 10:20:47.652013747 +0000
|
|
||||||
@@ -21,6 +21,7 @@
|
|
||||||
#include<cstdio>
|
|
||||||
#include<iostream>
|
|
||||||
#include<fstream>
|
|
||||||
+#include <unistd.h>
|
|
||||||
|
|
||||||
const float F_RAND_MAX = (float)(RAND_MAX);
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=xye
|
PRGNAM=xye
|
||||||
VERSION=${VERSION:-0.12.1}
|
VERSION=${VERSION:-0.12.2}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -66,19 +66,16 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# add gcc-4.7 patch
|
|
||||||
patch -p1 -i $CWD/gcc-4.7.patch
|
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--bindir=/usr/games \
|
--bindir=/usr/bin \
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
@ -92,10 +89,11 @@ install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desk
|
||||||
install -m 0644 res/default_icon.png $PKG/usr/share/$PRGNAM/res
|
install -m 0644 res/default_icon.png $PKG/usr/share/$PRGNAM/res
|
||||||
|
|
||||||
for i in 16 32 48 64 96 128; do
|
for i in 16 32 48 64 96 128; do
|
||||||
convert $PRGNAM.svg -resize ${i}x${i}! $PRGNAM-${i}.png
|
convert pixmaps/$PRGNAM.svg -resize ${i}x${i}! $PRGNAM-${i}.png
|
||||||
install -D -m 0644 $PRGNAM-${i}.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
|
install -D -m 0644 $PRGNAM-${i}.png $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
|
||||||
done
|
done
|
||||||
install -D -m 0644 $PRGNAM.svg $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
|
install -D -m 0644 pixmaps/$PRGNAM.svg \
|
||||||
|
$PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svg
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="xye"
|
PRGNAM="xye"
|
||||||
VERSION="0.12.1"
|
VERSION="0.12.2"
|
||||||
HOMEPAGE="http://xye.sourceforge.net/"
|
HOMEPAGE="http://xye.sourceforge.net/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/xye/xye-0.12.1.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/xye/xye-0.12.2.tar.gz"
|
||||||
MD5SUM="d6482d7490c11baacab4ca2df436af4f"
|
MD5SUM="f8a464fe0e67d8292dd32ef18e14ea18"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue