diff --git a/kde-apps/kbreakout/additional-files/kbreakout.rdef.in b/kde-apps/kbreakout/additional-files/kbreakout.rdef.in new file mode 100644 index 000000000..6bb547f89 --- /dev/null +++ b/kde-apps/kbreakout/additional-files/kbreakout.rdef.in @@ -0,0 +1,31 @@ + +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "KBreakOut", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource("QT:QPA_FLAGS") "Q_KILL_ON_EXIT"; + +resource vector_icon { + $"6E63696605020006073750D2BA12EC3FB6DC3CF8194199B24A1CD800FF494941" + $"FF8E8E68FFCECE72FFFFFF9EFFD5D5B0FF8282FFFF49490500020116023DAC00" + $"0000000000003DAC00490800497C0000F2AB7A02000202BA96CFBC6D1D3CA594" + $"BAD31146A5D249EB530000A7FFFFFE00A7FF0004016B0402044030C34530BC3A" + $"30304030BC3A30C3454050BC3A50C34550504050C34550BC3A0606AE0B304629" + $"48B78BC104264E2B50425A4B56495C4D50464E0A0524273A4C4F373B472D2306" + $"04AE455C5759555FC97AC80554533C4B070A040103000A040100023DBEB10000" + $"000000003C3C264A6F0A4A31190A0101011001178400040A000101000A030102" + $"000A010100123E07AC0000000000003E03FF49F65344F80001178500040A0201" + $"00023DBEB10000000000003DBC264A0F0A4588CD" +}; diff --git a/kde-apps/kbreakout/kbreakout-20.12.0.recipe b/kde-apps/kbreakout/kbreakout-20.12.0.recipe new file mode 100644 index 000000000..34c3c19cc --- /dev/null +++ b/kde-apps/kbreakout/kbreakout-20.12.0.recipe @@ -0,0 +1,141 @@ +SUMMARY="A Breakout-like game" +DESCRIPTION="The objective of KBreakOut is to destroy as many bricks as possible without losing the ball. + +The player is presented with a game field containing a number of bricks. A ball travels across the screen, \ +bouncing off the top and side walls. When a brick is hit, the ball bounces away and the brick is destroyed. \ +The player loses a life when the ball touches the bottom of the field. To prevent this from happening, the \ +player has to use a movable bar to bounce the ball upward, situated at the bottom of the window. \ +The purpose of the game is to progress through the levels destroying all bricks present in each, \ +and trying to get a highscore." +HOMEPAGE="https://apps.kde.org/kbreakout" +COPYRIGHT="2010-2020 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kbreakout-$portVersion.tar.xz" +CHECKSUM_SHA256="440e55b7656532ab46bbfb538d5e8e89f25cbfbdae70c38ac178780b3a13124f" +SOURCE_DIR="kbreakout-$portVersion" +PATCHES="kbreakout-$portVersion.patchset" +ADDITIONAL_FILES="kbreakout.rdef.in" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kbreakout$secondaryArchSuffix = $portVersion + app:KBreakOut$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Bookmarks$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigGui$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5Crash$secondaryArchSuffix + lib:libKF5DBusAddons$secondaryArchSuffix + lib:libKF5GuiAddons$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5IconThemes$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5KDEGames$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5TextEditor$secondaryArchSuffix + lib:libKF5TextWidgets$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + lib:libQt5Xml$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.77 + 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:libKF5DBusAddons$secondaryArchSuffix + devel:libKF5DocTools$secondaryArchSuffix + devel:libKF5GuiAddons$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5IconThemes$secondaryArchSuffix + devel:libKF5ItemModels$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KDEGames$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5TextEditor$secondaryArchSuffix + devel:libKF5TextWidgets$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix >= 5.15 + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:lrelease$secondaryArchSuffix >= 5 + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + # disable docs generation + sed -e '/add_subdirectory(doc)/ s/^#*/#/' -i CMakeLists.txt + sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt + + mkdir -p build + cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=$appsDir \ + -DCMAKE_INSTALL_DATADIR=$dataDir \ + -DCMAKE_INSTALL_DATAROOTDIR=$dataDir \ + -DSHARE_INSTALL_PREFIX=$dataDir \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + mv $appsDir/bin/kbreakout $appsDir/KBreakOut + rm -rf $appsDir/bin + + local APP_SIGNATURE="application/x-vnd.kde-kbreakout" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/kbreakout.rdef.in > kbreakout.rdef + + addResourcesToBinaries kbreakout.rdef $appsDir/KBreakOut + addAppDeskbarSymlink $appsDir/KBreakOut +} diff --git a/kde-apps/kbreakout/patches/kbreakout-20.12.0.patchset b/kde-apps/kbreakout/patches/kbreakout-20.12.0.patchset new file mode 100644 index 000000000..953691bbe --- /dev/null +++ b/kde-apps/kbreakout/patches/kbreakout-20.12.0.patchset @@ -0,0 +1,23 @@ +From 957504d62fba8d21324d85e58ed3cb970c1d0355 Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Sun, 3 Jan 2021 12:20:50 +1000 +Subject: Disable dbus + + +diff --git a/src/main.cpp b/src/main.cpp +index 80b77b2..b6d93f6 100644 +--- a/src/main.cpp ++++ b/src/main.cpp +@@ -71,7 +71,9 @@ int main(int argc, char *argv[]) + + app.setWindowIcon(QIcon::fromTheme(QStringLiteral("kbreakout"))); + ++#ifndef __HAIKU__ + KDBusService service; ++#endif + MainWindow *window = new MainWindow(); + Q_UNUSED(window); + +-- +2.28.0 +