From baf7fbf59a6cac7ee013b515336084506db61ff3 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sat, 12 Apr 2025 14:15:37 +1000 Subject: [PATCH] librewolf_bin: bump version --- ....0.recipe => librewolf_bin-137.0.1.recipe} | 31 ++++++++++++++++--- 1 file changed, 27 insertions(+), 4 deletions(-) rename www-client/librewolf/{librewolf_bin-137.0.recipe => librewolf_bin-137.0.1.recipe} (76%) diff --git a/www-client/librewolf/librewolf_bin-137.0.recipe b/www-client/librewolf/librewolf_bin-137.0.1.recipe similarity index 76% rename from www-client/librewolf/librewolf_bin-137.0.recipe rename to www-client/librewolf/librewolf_bin-137.0.1.recipe index fb83aa904..eeea5f2cf 100644 --- a/www-client/librewolf/librewolf_bin-137.0.recipe +++ b/www-client/librewolf/librewolf_bin-137.0.1.recipe @@ -12,8 +12,12 @@ COPYRIGHT="1995-2025 Mozilla Developers and Contributors" LICENSE="MPL v2.0" REVISION="1" SOURCE_URI="https://github.com/threedeyes/Gecko4Haiku/releases/download/$portVersion/librewolf-${portVersion}-1.en-US.haiku-x86_64.tar.xz#noarchive" -CHECKSUM_SHA256="d77abbfe790fcee976c26b2cf591754c0ca0f93af3fea3512a736c6eeeeea22f" -ADDITIONAL_FILES="librewolf.rdef.in" +CHECKSUM_SHA256="073910728761df63eb157949e1f5943f1c5d350995b87ae29e0f4e96ca2b144d" +PATCHES="librewolf_launcher-$portVersion.patchset" +ADDITIONAL_FILES=" + librewolf.rdef.in + librewolf_launcher.rdef.in + " ARCHITECTURES="x86_64" DISABLE_SOURCE_PACKAGE="true" @@ -45,12 +49,22 @@ REQUIRES=" lib:libpng16 lib:libz " - + +BUILD_REQUIRES=" + haiku_devel + " BUILD_PREREQUIRES=" + cmd:gcc cmd:tar cmd:xz " +BUILD() +{ + cd tools/haiku-launcher + gcc -o "LibreWolf Browser" launcher.cpp -lbe +} + INSTALL() { mkdir -p $appsDir @@ -58,6 +72,7 @@ INSTALL() mv $appsDir/librewolf $appsDir/LibreWolf mv $appsDir/LibreWolf/librewolf $appsDir/LibreWolf/LibreWolf + cp "tools/haiku-launcher/LibreWolf Browser" $appsDir/LibreWolf # arranging the files in lib directories mkdir -p $appsDir/LibreWolf/lib @@ -76,7 +91,7 @@ INSTALL() local APP_SIGNATURE="application/x-vnd.librewolf" local MAJOR="`echo "$portVersion" | cut -d. -f1`" local MIDDLE="`echo "$portVersion" | cut -d. -f2`" - local MINOR="0" + local MINOR="`echo "$portVersion" | cut -d. -f3`" local LONG_INFO="$SUMMARY" sed \ -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ @@ -86,7 +101,15 @@ INSTALL() -e "s|@LONG_INFO@|$LONG_INFO|" \ $portDir/additional-files/librewolf.rdef.in > librewolf.rdef + sed \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/librewolf_launcher.rdef.in > librewolf_launcher.rdef + addResourcesToBinaries librewolf.rdef $appsDir/LibreWolf/LibreWolf + addResourcesToBinaries librewolf_launcher.rdef "$appsDir/LibreWolf/LibreWolf Browser" addAppDeskbarSymlink $appsDir/LibreWolf/LibreWolf }