From 0b0c719c8f5c51477ad8e8ffaf6fd3b487b96db5 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 23 Dec 2023 14:54:01 +0100 Subject: [PATCH] Palapeli (#9913) * palapeli, new puzzle game --- .../additional-files/palapeli.rdef.in | 15 ++ kde-apps/palapeli/palapeli-22.12.3.recipe | 146 ++++++++++++++++++ .../patches/palapeli-22.12.3.patchset | 33 ++++ 3 files changed, 194 insertions(+) create mode 100644 kde-apps/palapeli/additional-files/palapeli.rdef.in create mode 100644 kde-apps/palapeli/palapeli-22.12.3.recipe create mode 100644 kde-apps/palapeli/patches/palapeli-22.12.3.patchset diff --git a/kde-apps/palapeli/additional-files/palapeli.rdef.in b/kde-apps/palapeli/additional-files/palapeli.rdef.in new file mode 100644 index 000000000..541e037ac --- /dev/null +++ b/kde-apps/palapeli/additional-files/palapeli.rdef.in @@ -0,0 +1,15 @@ +resource app_flags B_SINGLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "@APP_NAME@", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; diff --git a/kde-apps/palapeli/palapeli-22.12.3.recipe b/kde-apps/palapeli/palapeli-22.12.3.recipe new file mode 100644 index 000000000..d69d1d84d --- /dev/null +++ b/kde-apps/palapeli/palapeli-22.12.3.recipe @@ -0,0 +1,146 @@ +SUMMARY="A jigsaw puzzle game" +DESCRIPTION="Palapeli is a single-player jigsaw puzzle game" +HOMEPAGE="https://invent.kde.org/games/palapeli" +COPYRIGHT="2009-2010 Stefan Majewsky" +LICENSE="MIT + GNU GPL v2" +REVISION="1" +SOURCE_URI="$HOMEPAGE/-/archive/v$portVersion/palapeli-v$portVersion.tar.bz2" +CHECKSUM_SHA256="ff047bc85c5ac6dc0698b048f94ca682b8e7bb24dd047f718cfe5f80216bb46b" +SOURCE_DIR="palapeli-v$portVersion" +PATCHES="palapeli-$portVersion.patchset" +ADDITIONAL_FILES="palapeli.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="0.2.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +GLOBAL_WRITABLE_FILES=" + settings/xdg/palapeli-collectionrc keep-old + " + +PROVIDES=" + palapeli$secondaryArchSuffix = $portVersion + cmd:palapeli$secondaryArchSuffix = $portVersion + lib:libpala$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigGui$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5Crash$secondaryArchSuffix + lib:libKF5KDEGames$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5Notifications$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Qml$secondaryArchSuffix + lib:libQt5Quick$secondaryArchSuffix + lib:libQt5Svg$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +PROVIDES_devel=" + palapeli${secondaryArchSuffix}_devel = $portVersion + devel:libpala$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + palapeli$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.93.0 + devel:libKF5Archive$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5Crash$secondaryArchSuffix + devel:libKF5KDEGames$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Notifications$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_BINDIR=$appsDir \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libpala + + packageEntries devel \ + $developDir \ + $libDir/cmake + + mv $appsDir/palapeli $appsDir/Palapeli + + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local APP_NAME="Palapeli" + local LONG_INFO="$SUMMARY" + local APP_SIGNATURE="application/x-vnd.palapeli" + sed \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + -e "s|@APP_NAME@|$APP_NAME|" \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + $portDir/additional-files/palapeli.rdef.in > palapeli.rdef + + addResourcesToBinaries palapeli.rdef $appsDir/Palapeli + + addAppDeskbarSymlink $appsDir/Palapeli +} diff --git a/kde-apps/palapeli/patches/palapeli-22.12.3.patchset b/kde-apps/palapeli/patches/palapeli-22.12.3.patchset new file mode 100644 index 000000000..f71d46570 --- /dev/null +++ b/kde-apps/palapeli/patches/palapeli-22.12.3.patchset @@ -0,0 +1,33 @@ +From 215c303f470255ed05dc7bba05f69e3cee947632 Mon Sep 17 00:00:00 2001 +From: Begasus +Date: Fri, 22 Dec 2023 18:51:58 +0100 +Subject: Disable DocTools + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f95882c..0702640 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -33,7 +33,6 @@ find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS + ConfigWidgets + CoreAddons + Crash +- DocTools + I18n + ItemViews + KIO +@@ -57,11 +56,9 @@ add_subdirectory(pics) + add_subdirectory(src) + add_subdirectory(mime) + add_subdirectory(puzzles) +-add_subdirectory(doc) + + ecm_qt_install_logging_categories(EXPORT PALAPELI FILE palapeli.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) + + ki18n_install(po) +-kdoctools_install(po) + + feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) +-- +2.42.1 +