summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/CMakeLists.txt13
-rw-r--r--packaging/gentoo/tuxanci-9999.ebuild2
-rwxr-xr-xpackaging/linux/build.sh8
3 files changed, 10 insertions, 13 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
index 80da8c2..8b4979b 100644
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -13,13 +13,8 @@ ADD_SUBDIRECTORY ( sound )
# CURRENT DIRECTORY FILES
###############################################################################
CONFIGURE_FILE ( tuxanci.desktop.in data/tuxanci.desktop )
-# dont instal those let packagers handle it
-#IF ( NOT Server )
-# INSTALL ( FILES tuxanci.desktop
-# DESTINATION ${CMAKE_INSTALL_DOCDIR}/${APPNAME}/)
-# IF ( NOT Win )
-# INSTALL ( FILES tuxanci.svg
-# DESTINATION ${CMAKE_INSTALL_DOCDIR}/${APPNAME}/ )
-# ENDIF ( NOT Win )
-#ENDIF ( NOT Server )
+IF ( NOT Server )
+ INSTALL ( FILES tuxanci.svg
+ DESTINATION ${CMAKE_INSTALL_DOCDIR}/${APPNAME}/ )
+ENDIF ( NOT Server )
###############################################################################
diff --git a/packaging/gentoo/tuxanci-9999.ebuild b/packaging/gentoo/tuxanci-9999.ebuild
index 85eb85a..7e6cc4a 100644
--- a/packaging/gentoo/tuxanci-9999.ebuild
+++ b/packaging/gentoo/tuxanci-9999.ebuild
@@ -44,6 +44,8 @@ src_install() {
cmake-utils_src_install
doicon data/${PN}.svg
+ # we compile our desktop file
+ cd "${WORKDIR}"/tuxanci_build
domenu data/${PN}.desktop
prepgamesdirs
diff --git a/packaging/linux/build.sh b/packaging/linux/build.sh
index 5ab9af3..b46d78e 100755
--- a/packaging/linux/build.sh
+++ b/packaging/linux/build.sh
@@ -75,17 +75,17 @@ echo "2.0" > "${DEST_DEB}"/DEBIAN/debian-binary
echo "[Desktop Entry]
Name=${APPNAME}-${Y}-${VERSION}
Comment=game tuxanci
-Exec=/usr/games/bin/${APPNAME}-${VERSION}
+Exec=${APPNAME}-${Y}-${VERSION}
Terminal=false
Type=Application
-Icon=/usr/games/share/tuxanci-svn/images/tuxanci.png
+Icon=/usr/games/share/doc/${APPNAME}-${Y}-${VERSION}/tuxanci.svg
Encoding=UTF-8
-Categories=Game" > "${DEST_DEB}"/usr/share/applications/tuxanci.desktop
+Categories=Game;" > "${DEST_DEB}"/usr/share/applications/tuxanci.desktop
echo "Package: ${APPNAME}-${Y}-${VERSION}
Version: 0.2.1
Section: Game
Priority: optional
-Depends: libc6 (>= 2.2.4-4), libsdl1.2debian (>= 1.2), libsdl-image1.2 (>= 1.2), libsdl-mixer1.2 (>= 1.2), libsdl-ttf2.0-0 (>= 2.0), gettext
+Depends: libc6 (>= 2.2.4-4), libsdl1.2debian (>= 1.2), libsdl-image1.2 (>= 1.2), libsdl-mixer1.2 (>= 1.2), libsdl-ttf2.0-0 (>= 2.0)
Architecture: ${ARCH}
Installed-Size: 4993
Maintainer: Tomas Chvatal <tomas.chvatal@gmail.com>