[planetblupi] 05/08: Backport an upstream patch serie to install a desktop file

Didier Raboud odyx at moszumanska.debian.org
Sun Oct 22 10:12:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit 412f2ff6a18dfe163ab9ae6b2256eb65beb0f75c
Merge: 098f340 0e6b80c
Author: Didier Raboud <odyx at debian.org>
Date:   Sun Oct 22 11:42:14 2017 +0200

    Backport an upstream patch serie to install a desktop file

 CMakeLists.txt                                   | 19 +++++-
 debian/.git-dpm                                  |  4 +-
 debian/patches/0003-Install-a-desktop-file.patch | 85 ++++++++++++++++++++++++
 debian/patches/series                            |  1 +
 resources/linux/application.desktop.in           | 10 +--
 5 files changed, 111 insertions(+), 8 deletions(-)

diff --cc debian/.git-dpm
index ff66920,0000000..ee102ef
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
 +# see git-dpm(1) from git-dpm package
- a08c4dc1a1666f6ed7558f29cfc0d57c4d8d723e
- a08c4dc1a1666f6ed7558f29cfc0d57c4d8d723e
++0e6b80c841ea01e8fea35ff3307db4ee239dde29
++0e6b80c841ea01e8fea35ff3307db4ee239dde29
 +e0ace8819512553d3680e912e419a5df1b8295ab
 +e0ace8819512553d3680e912e419a5df1b8295ab
 +planetblupi_1.11.0.orig.tar.xz
 +d62eb5661224b1859f3b23afdbfbe03349e2f789
 +23135816
diff --cc debian/patches/0003-Install-a-desktop-file.patch
index 0000000,0000000..d34943b
new file mode 100644
--- /dev/null
+++ b/debian/patches/0003-Install-a-desktop-file.patch
@@@ -1,0 -1,0 +1,85 @@@
++From 0e6b80c841ea01e8fea35ff3307db4ee239dde29 Mon Sep 17 00:00:00 2001
++From: Mathieu Schroeter <mathieu at schroetersa.ch>
++Date: Fri, 20 Oct 2017 17:57:21 +0200
++Subject: Install a desktop file
++
++This is the following serie of commits:
++- d3986d5d4aea44e43462ef875e47add8bb0cb3f7 Add a category in the desktop file
++- a50e648d634493793a8aa8aa2e266ad890b121a6 WIP: add desktop file for standard build
++- 29ad6c30f4ff1011097abb206457c5038839a67d Fix deploy of desktop file with non-appimage builds
++
++Also use @PB_ICON@
++---
++ CMakeLists.txt                         | 19 ++++++++++++++++++-
++ resources/linux/application.desktop.in | 10 +++++-----
++ 2 files changed, 23 insertions(+), 6 deletions(-)
++
++diff --git a/CMakeLists.txt b/CMakeLists.txt
++index 278c4f1..d812d61 100644
++--- a/CMakeLists.txt
+++++ b/CMakeLists.txt
++@@ -16,6 +16,8 @@ set (PB_VERSION_PATCH 0)
++ set (PB_VERSION_EXTRA "")
++ set (PB_PRODUCT_NAME "Planet Blupi")
++ set (PB_PACKAGE_NAME "planetblupi")
+++set (PB_EXEC         "planetblupi")
+++set (PB_ICON_REF     "blupi")
++ set (PB_DESCRIPTION "Planet Blupi - A delerious spell-binding game")
++ 
++ option (PB_HTTP_VERSION_CHECK "Run a version check over HTTP (with CURL)" OFF)
++@@ -34,6 +36,14 @@ if (APPIMAGE_APPRUN_PROGRAM AND APPIMAGE_ASSISTANT_PROGRAM)
++   set (USE_APPIMAGE ON)
++ endif ()
++ 
+++if (NOT USE_APPIMAGE)
+++  configure_file (
+++    "${PROJECT_SOURCE_DIR}/resources/linux/application.desktop.in"
+++    "${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop"
+++    @ONLY
+++  )
+++endif ()
+++
++ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
++   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -L${CMAKE_INSTALL_PREFIX}/lib")
++ endif ()
++@@ -261,6 +271,13 @@ if (UNIX AND NOT APPLE)
++   install (DIRECTORY resources/icon/hicolor DESTINATION share/icons)
++ endif ()
++ 
+++if (NOT USE_APPIMAGE)
+++  install (
+++    FILES ${CMAKE_CURRENT_BINARY_DIR}/${PB_PACKAGE_NAME}.desktop
+++    DESTINATION share/applications
+++  )
+++endif ()
+++
++ # Copy libwinpthread-1.dll which seems not be linkable statically
++ if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows" AND MINGW)
++   execute_process (COMMAND cygpath.exe --windows /mingw64 OUTPUT_VARIABLE MINGW64_PATH)
++@@ -288,7 +305,7 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release" AND "${STATIC_BUILD}")
++   if (USE_APPIMAGE)
++     include (LinuxAppImageBuild)
++     set (CMAKE_PACKAGED_OUTPUT_PREFIX ${CMAKE_INSTALL_PREFIX})
++-    APPIMAGE_PACKAGE (planetblupi ${PB_PACKAGE_NAME} ${PB_PRODUCT_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "" "blupi")
+++    APPIMAGE_PACKAGE (planetblupi ${PB_PACKAGE_NAME} ${PB_PRODUCT_NAME} "${CMAKE_CURRENT_SOURCE_DIR}/resources/linux" "${CMAKE_BINARY_DIR}/share" "" "" ${PB_ICON_REF})
++   elseif (MINGW)
++     set (INSTALLER_FILE_NAME "${PB_PACKAGE_NAME}-${PB_VERSION_MAJOR}.${PB_VERSION_MINOR}.${PB_VERSION_PATCH}${PB_VERSION_EXTRA}")
++     set (CPACK_PACKAGE_FILE_NAME "${INSTALLER_FILE_NAME}")
++diff --git a/resources/linux/application.desktop.in b/resources/linux/application.desktop.in
++index 038b99c..db29df3 100644
++--- a/resources/linux/application.desktop.in
+++++ b/resources/linux/application.desktop.in
++@@ -3,8 +3,8 @@ Version=1.0
++ Type=Application
++ Name=@PB_PRODUCT_NAME@
++ GenericName=Video Game
++-Comment=@CPACK_PACKAGE_DESCRIPTION_SUMMARY@
++-Exec=@APPIMAGE_EXEC@
++-StartupWMClass=@APPIMAGE_EXEC_WM@
++-Icon=@APPIMAGE_ICON_REF@
++-Categories=Game;
+++Comment=@PB_DESCRIPTION@
+++Exec=@PB_EXEC@
+++StartupWMClass=@PB_EXEC@
+++Icon=@PB_ICON_REF@
+++Categories=Game;StrategyGame;
diff --cc debian/patches/series
index 126434e,0000000..3521a13
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,2 -1,0 +1,3 @@@
 +0001-The-planetblupi-executable-goes-to-usr-games-not-usr.patch
 +0002-Make-the-CURL-dependency-optional-through-the-PB_HTT.patch
++0003-Install-a-desktop-file.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git



More information about the Pkg-games-commits mailing list