Files
haikuports/www-client/dooble/dooble-2025.07.18.recipe
2025-08-03 15:42:42 +00:00

99 lines
2.8 KiB
Bash

SUMMARY="A secure and open source web browser"
DESCRIPTION="Dooble is a web browser focused on security and privacy with \
many integrated features like support for advanced options and cookie \
management, Gopher support, a FTP browser, a file manager, a download \
manager, and many others."
HOMEPAGE="https://textbrowser.github.io/dooble/"
COPYRIGHT="2008-present Alexis Megas"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/textbrowser/dooble/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="edd0b21b3cf579dee136e0b7ebd37fc451f434a02b972bbc033fadf7086603f7"
SOURCE_DIR="dooble-$portVersion"
PATCHES="dooble-$portVersion.patchset"
ADDITIONAL_FILES="
dooble.rdef.in
haikuicons.zip
"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dooble$secondaryArchSuffix = $portVersion
app:Dooble$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libgcrypt$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libgpg_error$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Script$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5WebEngine$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
lib:libsqlite3$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix >= 3
devel:libexecinfo$secondaryArchSuffix
devel:libgcrypt$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5Script$secondaryArchSuffix
devel:libQt5Sql$secondaryArchSuffix
devel:libQt5WebEngine$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libsqlite3$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
cmd:unzip
"
BUILD()
{
qmake dooble.pro
make $jobArgs
}
PATCH ()
{
unzip -o $sourceDir/../../additional-files/haikuicons.zip -d $sourceDir/Icons
}
INSTALL()
{
mkdir -p $appsDir/Dooble/lib
cp -rf {Data,Images,Translations} $appsDir/Dooble
cp -f Dooble $appsDir/Dooble
local MAJOR="$(echo ${portVersion%%_*} | cut -d. -f1)"
local MIDDLE="$(echo ${portVersion%%_*} | cut -d. -f2)"
local MINOR="$(echo ${portVersion%%_*} | cut -d. -f3)"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/dooble.rdef.in > dooble.rdef
addResourcesToBinaries dooble.rdef \
$appsDir/Dooble/Dooble
addAppDeskbarSymlink $appsDir/Dooble/Dooble
}