waterfox_bin: add recipe for 6.5.5 version

This commit is contained in:
Gerasim Troeglazov
2025-03-16 17:33:27 +10:00
parent ae6d731c5f
commit f64c8a0313

View File

@@ -0,0 +1,95 @@
SUMMARY="A Firefox fork with privacy, usability, and speed enhancements"
DESCRIPTION="Waterfox is an open-source, privacy-focused browser based on the popular \
open source browser with a red panda as a mascot. It is designed to be a drop-in \
replacement for said browser that offers enhanced privacy features, performance \
improvements, and customizability while maintaining compatibility with existing extensions.
Key Features:
* Privacy-focused: Removal of telemetry and tracking, with bare minimum of data collection for operation.
* Performance-oriented: Optimized for modern systems
* Customizable: Support for classic and modern extensions
* Cross-platform: Available for Windows, macOS, Linux, Android and Haiku
* Modern: Regular updates to stay current with web standards"
HOMEPAGE="https://www.waterfox.net/"
COPYRIGHT="1995-2025 Mozilla Developers, BrowserWorks"
LICENSE="MPL v2.0"
REVISION="1"
SOURCE_URI="https://github.com/threedeyes/Gecko4Haiku/releases/download/$portVersion/waterfox-$portVersion.en-US.haiku-x86_64.tar.bz2#noarchive"
CHECKSUM_SHA256="5b3548af6e3db0daca05faef21f24035af4626fd290d45c7757ce46716354998"
ADDITIONAL_FILES="waterfox.rdef.in"
ARCHITECTURES="x86_64"
DISABLE_SOURCE_PACKAGE="true"
PROVIDES="
waterfox_bin = $portVersion
app:Waterfox = $portVersion
"
REQUIRES="
haiku
lib:libatk_1.0
lib:libcairo
lib:libcairo_gobject
lib:libdbus_1
lib:libevent_2.1
lib:libgdk_3
lib:libgdk_pixbuf_2.0
lib:libgio_2.0
lib:libglib_2.0
lib:libgobject_2.0
lib:libgtk_3
lib:libharfbuzz
lib:libintl
lib:libnspr4
lib:libnss3
lib:libpango_1.0
lib:libpangocairo_1.0
lib:libpng16
lib:libz
"
BUILD_PREREQUIRES="
cmd:tar
cmd:bzip2
"
INSTALL()
{
mkdir -p $appsDir
tar -xvjf waterfox-$portVersion.en-US.haiku-x86_64.tar.bz2 -C $appsDir
mv $appsDir/waterfox $appsDir/Waterfox
mv $appsDir/Waterfox/waterfox $appsDir/Waterfox/Waterfox
# arranging the files in lib directories
mkdir -p $appsDir/Waterfox/lib
cd $appsDir/Waterfox
mv \
libgkcodecs.so \
libipcclientcerts.so \
liblgpllibs.so \
libmozavcodec.so \
libmozavutil.so \
libmozgtk.so \
libmozsqlite3.so \
libmozwayland.so \
libxul.so \
lib
local APP_SIGNATURE="application/x-vnd.waterfox"
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/waterfox.rdef.in > waterfox.rdef
addResourcesToBinaries waterfox.rdef $appsDir/Waterfox/Waterfox
addAppDeskbarSymlink $appsDir/Waterfox/Waterfox
}