mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
125 lines
3.3 KiB
Bash
125 lines
3.3 KiB
Bash
SUMMARY=" A new Firefox based browser from Japan with excellent privacy & flexibility"
|
|
DESCRIPTION="Floorp is a free and open-source web browser based on Firefox, developed by \
|
|
Floorp Projects.
|
|
|
|
It focuses on providing a highly customizable and privacy-oriented browsing \
|
|
experience, making it an excellent choice for users who value both flexibility and security. \
|
|
The browser includes features like strong tracking protection, side panels, workspaces, \
|
|
and vertical tabs for better organization and convenience. With its emphasis on speed, \
|
|
security, and user freedom, Floorp strikes a balance between versatility, privacy, and web \
|
|
openness.
|
|
|
|
Being cross-platform, it ensures accessibility across different devices without \
|
|
collecting personal information."
|
|
HOMEPAGE="https://floorp.app/"
|
|
COPYRIGHT="1995-2025 Mozilla Developers, Floorp Projects & Ablaze"
|
|
LICENSE="MPL v2.0"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/threedeyes/Gecko4Haiku/releases/download/$portVersion/floorp-$portVersion.en-US.haiku-x86_64.tar.bz2#noarchive"
|
|
CHECKSUM_SHA256="ded473208504722b1908722c43b25fd78231f012f655ef00a4581a345ffe0de5"
|
|
PATCHES="floorp_launcher-$portVersion.patchset"
|
|
ADDITIONAL_FILES="
|
|
floorp.rdef.in
|
|
floorp_launcher.rdef.in
|
|
"
|
|
|
|
ARCHITECTURES="x86_64"
|
|
DISABLE_SOURCE_PACKAGE="true"
|
|
|
|
PROVIDES="
|
|
floorp_bin = $portVersion
|
|
app:Floorp = $portVersion
|
|
"
|
|
CONFLICTS="
|
|
floorp
|
|
"
|
|
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:libmediahelpers
|
|
lib:libnotify
|
|
lib:libnspr4
|
|
lib:libnss3
|
|
lib:libpango_1.0
|
|
lib:libpangocairo_1.0
|
|
lib:libpng16
|
|
lib:libz
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc
|
|
cmd:tar
|
|
cmd:bzip2
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cd tools/haiku-launcher
|
|
gcc -o "Floorp Browser" launcher.cpp -lbe
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir
|
|
tar -xvjf floorp-$portVersion.en-US.haiku-x86_64.tar.bz2 -C $appsDir
|
|
|
|
mv $appsDir/floorp $appsDir/Floorp
|
|
mv $appsDir/Floorp/floorp $appsDir/Floorp/Floorp
|
|
cp "tools/haiku-launcher/Floorp Browser" $appsDir/Floorp
|
|
|
|
# arranging the files in lib directories
|
|
mkdir -p $appsDir/Floorp/lib
|
|
cd $appsDir/Floorp
|
|
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.floorp-browser"
|
|
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/floorp.rdef.in > floorp.rdef
|
|
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
$portDir/additional-files/floorp_launcher.rdef.in > floorp_launcher.rdef
|
|
|
|
addResourcesToBinaries floorp.rdef $appsDir/Floorp/Floorp
|
|
addResourcesToBinaries floorp_launcher.rdef "$appsDir/Floorp/Floorp Browser"
|
|
|
|
addAppDeskbarSymlink $appsDir/Floorp/Floorp
|
|
}
|