summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/teeworlds/doinst.sh6
-rw-r--r--games/teeworlds/teeworlds.SlackBuild29
-rw-r--r--games/teeworlds/teeworlds.desktop8
-rw-r--r--games/teeworlds/teeworlds.pngbin40118 -> 4986 bytes
4 files changed, 27 insertions, 16 deletions
diff --git a/games/teeworlds/doinst.sh b/games/teeworlds/doinst.sh
index 8542d1c18e..5fb28930db 100644
--- a/games/teeworlds/doinst.sh
+++ b/games/teeworlds/doinst.sh
@@ -1,5 +1,3 @@
-if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
- if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
- fi
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
diff --git a/games/teeworlds/teeworlds.SlackBuild b/games/teeworlds/teeworlds.SlackBuild
index 3aede04f82..a5c2e18d26 100644
--- a/games/teeworlds/teeworlds.SlackBuild
+++ b/games/teeworlds/teeworlds.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=teeworlds
VERSION=${VERSION:-0.6.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,10 +54,13 @@ else
LIBDIRSUFFIX=""
fi
+OS=$(uname | tr [:upper:] [:lower:])
+
+# Automatically tarball selected by architecture
if [ "$ARCH" = "x86_64" ]; then
- SRCNAM=teeworlds-0.6.2-linux_x86_64
+ SRCNAM=$PRGNAM-$VERSION-$OS\_$ARCH
else
- SRCNAM=teeworlds-0.6.2-linux_x86
+ SRCNAM=$PRGNAM-$VERSION-$OS\_x86
fi
set -e
@@ -75,17 +78,27 @@ 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 {} \;
-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 $PKG/usr/bin
+
+# copy data-game
+cp -rf data storage.cfg $PRGNAM $PKG/usr/share/games/$PRGNAM
+
+# install launchers and server
+install -D -m0755 $PRGNAM $PKG/usr/share/games/$PRGNAM/$PRGNAM
+install -D -m0755 $PRGNAM\_srv $PKG/usr/share/games/$PRGNAM/$PRGNAM\_srv
-mkdir -p $PKG/usr/share/games/$PRGNAM-$VERSION
-cp -rf * $PKG/usr/share/games/$PRGNAM-$VERSION
+# create soft links
+(
+cd $PKG/usr/bin
+ln -sf /usr/share/games/$PRGNAM/$PRGNAM $PRGNAM
+ln -sf /usr/share/games/$PRGNAM/$PRGNAM\_srv $PRGNAM\_srv
+)
mkdir -p $PKG/usr/share/applications
install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/usr/share/pixmaps/
-install -D -m644 $CWD/teeworlds.png $PKG/usr/share/pixmaps/$PRGNAM.svg
+install -D -m644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.txt $PKG/usr/doc/$PRGNAM-$VERSION
diff --git a/games/teeworlds/teeworlds.desktop b/games/teeworlds/teeworlds.desktop
index 19d25cf63d..ece6346a4a 100644
--- a/games/teeworlds/teeworlds.desktop
+++ b/games/teeworlds/teeworlds.desktop
@@ -1,8 +1,8 @@
[Desktop Entry]
-Name=teeworlds
-Name[he]= teeworlds
-Comment=Action
-Exec=/usr/share/games/teeworlds-0.6.2/./teeworlds
+Name=Teeworlds
+Name[he]= Teeworlds
+Comment=Multiplayer 2D shooter
+Exec=teeworlds
Icon=teeworlds
Terminal=false
Type=Application
diff --git a/games/teeworlds/teeworlds.png b/games/teeworlds/teeworlds.png
index 858c9ba026..4f1c955b17 100644
--- a/games/teeworlds/teeworlds.png
+++ b/games/teeworlds/teeworlds.png
Binary files differ