summaryrefslogtreecommitdiff
path: root/games/tome4/tome4.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/tome4/tome4.SlackBuild')
-rw-r--r--games/tome4/tome4.SlackBuild27
1 files changed, 18 insertions, 9 deletions
diff --git a/games/tome4/tome4.SlackBuild b/games/tome4/tome4.SlackBuild
index 01eaa59250..09d09b26e6 100644
--- a/games/tome4/tome4.SlackBuild
+++ b/games/tome4/tome4.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=tome4
SRCNAM=t-engine4-src
VERSION=${VERSION:-1.1.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -63,6 +63,8 @@ cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
+# extract icons
+unzip -oj -qq game/engines/te4-1.1.5.teae -d icons
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -70,25 +72,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# correction of SDL2 headers directory
+patch -p1 < $CWD/premake4_sdl.patch
+
+# build game
premake4 gmake
-patch -p1 < $CWD/physfs_sdl.patch build/physfs.make
-patch -p1 < $CWD/TEngine_sdl.patch build/TEngine.make
make
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION
-cp -rf game $PKG/usr/share/games/$PRGNAM-$VERSION
-cp -rf bootstrap $PKG/usr/share/games/$PRGNAM-$VERSION
-install -m 0755 t-engine $PKG/usr/share/games/$PRGNAM-$VERSION
-install -m 0755 $CWD/$PRGNAM.sh $PKG/usr/share/games/$PRGNAM-$VERSION
+# copy the data game
+mkdir -p $PKG/usr/share/games/$PRGNAM $PKG/usr/bin
+cp -rf game $PKG/usr/share/games/$PRGNAM
+cp -rf bootstrap $PKG/usr/share/games/$PRGNAM
+
+# install the game executable and the launcher
+install -D -m0755 t-engine $PKG/usr/share/games/$PRGNAM
+install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM
+# install .desktop
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+# install icon game
mkdir -p $PKG/usr/share/pixmaps/
-install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.svg
+install -D -m644 icons/te4-icon.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CONTRIBUTING COPYING* CREDITS $PKG/usr/doc/$PRGNAM-$VERSION