librewolf_bin: bump version

This commit is contained in:
Gerasim Troeglazov
2025-04-12 14:15:37 +10:00
parent a7741e1ace
commit baf7fbf59a

View File

@@ -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
}