diff --git a/kde-apps/bovo/additional-files/bovo.rdef.in b/kde-apps/bovo/additional-files/bovo.rdef.in new file mode 100644 index 000000000..10e6be261 --- /dev/null +++ b/kde-apps/bovo/additional-files/bovo.rdef.in @@ -0,0 +1,36 @@ + +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "Bovo", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon { + $"6E63696607050104016D02010602B8BA08BC9C3FBD1CCE39405149D1014A3263" + $"00AC0404FFFFC0C0020106020000003D0000BD00000000004940004A6000003C" + $"0101FFBB0505020106030000003E37FCBE8000000000495FFF462FFF00FBC5C5" + $"7DE40606FFAC0404020006023CDA963E29D1BDDA653C8A9D4B4BEB481B2000FF" + $"FFFFFF065BE802000602BC34F63AB6ADBA6801BBE9F54B0E524A5BEE00011236" + $"FF0650E60902042A392F30B476C180365AB58DC83E405D5B4A5557CD49BDB650" + $"2DCB52BA2040270204463B3E3AC399BDF04F44513C4E483E4C474FBC13C39237" + $"433646BC99BFA40604EE345A5654C1A0CD2769455B3555516541485E060DAAAA" + $"AE022C4E363E25302D243D314623532D4A3D50424D48C59DC1E84B4B484C434A" + $"395A0A0427282C24263021330A0421332630363E31420A043041363E2C4F2751" + $"0A0427522C4E3959335C0A043D323A3042244723070A010100023F6C28000000" + $"0000003CCDB346BECD4A92F30A00080002030405060708123FA43F0000000000" + $"003FDE7F41D3334010EE01178422040A060102023FA43F0000000000003FDE7F" + $"41D3334010EE0A05020001023FA43F0000000000003FDE7F41D3334010EE0A02" + $"03040806023FA43F0000000000003FDE7F41D3334010EE0A040103023FA43F00" + $"00000000003FDE7F41D3334010EE0A03020705023FA43F0000000000003FDE7F" + $"41D3334010EE" +}; diff --git a/kde-apps/bovo/bovo-20.12.0.recipe b/kde-apps/bovo/bovo-20.12.0.recipe new file mode 100644 index 000000000..6ad93c74c --- /dev/null +++ b/kde-apps/bovo/bovo-20.12.0.recipe @@ -0,0 +1,137 @@ +SUMMARY="Gomoku like game for two players" +DESCRIPTION="Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five points\") like \ +game for two players, where the opponents alternate in placing their respective \ +pictogram on the game board. (Also known as: Connect Five, Five in a row, X and O, \ +Naughts and Crosses)." +HOMEPAGE="https://apps.kde.org/bovo" +COPYRIGHT="2010-2020 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/bovo-$portVersion.tar.xz" +CHECKSUM_SHA256="1ff3609c1d2c1a7afd9d87b27bb5b78f83df7fc221f8ac86aa1d546306530ba3" +SOURCE_DIR="bovo-$portVersion" +PATCHES="bovo-$portVersion.patchset" +ADDITIONAL_FILES="bovo.rdef.in" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + bovo$secondaryArchSuffix = $portVersion + app:Bovo$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/bovo $appsDir/Bovo + rm -rf $appsDir/bin + + local APP_SIGNATURE="application/x-vnd.kde-bovo" + 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/bovo.rdef.in > bovo.rdef + + addResourcesToBinaries bovo.rdef $appsDir/Bovo + addAppDeskbarSymlink $appsDir/Bovo +} diff --git a/kde-apps/bovo/patches/bovo-20.12.0.patchset b/kde-apps/bovo/patches/bovo-20.12.0.patchset new file mode 100644 index 000000000..b98fda262 --- /dev/null +++ b/kde-apps/bovo/patches/bovo-20.12.0.patchset @@ -0,0 +1,23 @@ +From ae5398f3f01d778d7a11ead766ea81d8350adbba Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Sat, 2 Jan 2021 19:43:20 +1000 +Subject: Disable dbus + + +diff --git a/gui/main.cc b/gui/main.cc +index 359fc32..49abd72 100644 +--- a/gui/main.cc ++++ b/gui/main.cc +@@ -64,7 +64,9 @@ int main(int argc, char **argv) { + aboutData.setupCommandLine(&parser); + parser.process(app); + aboutData.processCommandLine(&parser); ++#ifndef __HAIKU__ + KDBusService service; ++#endif + if( app.isSessionRestored() ) { + kRestoreMainWindows(); + } else { +-- +2.28.0 +