Files
haikuports/www-client/qupzilla/qupzilla-1.8.9.recipe
Gerasim Troeglazov a47b9dfa17 QupZilla: bump revision
2018-05-06 00:35:47 +10:00

114 lines
3.4 KiB
Bash

SUMMARY="A lightweight QtWebKit browser"
DESCRIPTION="QupZilla is a free and open-source web browser, \
intended for general users. It allows seamless integration with \
users' desktop environments and has several distinguishing features \
positively received by reviewers:
- A unified interface for bookmarks, history and RSS reading.
- A themeable interface.
- Integrated Adblock.
- Speed dial."
HOMEPAGE="https://www.qupzilla.com/"
COPYRIGHT="2010-2015 David Rosca"
LICENSE="GNU GPL v3"
REVISION="9"
SOURCE_URI="https://github.com/QupZilla/qupzilla/releases/download/v$portVersion/QupZilla-$portVersion.tar.xz"
CHECKSUM_SHA256="620ffb10a3f6b3f596c2c38a84d9c320cb66dd2d5e6701e8e31945e26308fcac"
SOURCE_DIR="QupZilla-$portVersion"
SOURCE_URI_2="https://github.com/miqlas/Qupzilla-Haiku/archive/0.0.2.tar.gz"
CHECKSUM_SHA256_2="a64bd316d4067524a805da558558dadb9987234a4867a242d0670095bae6d6e1"
SOURCE_DIR_2="Qupzilla-Haiku-0.0.2"
PATCHES="qupzilla-$portVersion.patchset"
ADDITIONAL_FILES="qupzilla.rdef"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
qupzilla$secondaryArchSuffix = $portVersion
app:QupZilla$secondaryArchSuffix = $portVersion
lib:libQupZilla$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libexecinfo$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
lib:libQt5Network$secondaryArchSuffix
lib:libQt5PrintSupport$secondaryArchSuffix
lib:libQt5Script$secondaryArchSuffix
lib:libQt5Sql$secondaryArchSuffix
lib:libQt5WebKit$secondaryArchSuffix
lib:libQt5WebKitWidgets$secondaryArchSuffix
lib:libQt5Widgets$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:qmake$secondaryArchSuffix >= 5
cmd:make
cmd:g++$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:sed
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libexecinfo$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
devel:libQt5Network$secondaryArchSuffix
devel:libQt5Script$secondaryArchSuffix
devel:libQt5Sql$secondaryArchSuffix
devel:libQt5PrintSupport$secondaryArchSuffix
devel:libQt5WebKit$secondaryArchSuffix
devel:libQt5WebKitWidgets$secondaryArchSuffix
devel:libQt5Widgets$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD()
{
cd $sourceDir
export QUPZILLA_PREFIX=$appsDir/QupZilla
export DISABLE_UPDATES_CHECK="true"
export USE_QTWEBKIT_2_2="true"
export USE_QTWEBKIT_2_3="true"
qmake
make $jobArgs
}
INSTALL()
{
cd $sourceDir
mkdir -p $libDir
mkdir -p $appsDir/QupZilla
cd bin
cp qupzilla $appsDir/QupZilla/QupZilla
cp -R locale $appsDir/QupZilla
cp -R plugins $appsDir/QupZilla
cp -R themes $appsDir/QupZilla
cp -d libQupZilla.* $libDir
# Haiku theme
mkdir -p $appsDir/QupZilla/themes
cp -dR $sourceDir2/haiku $appsDir/QupZilla/themes
# Add Haiku resources
local APP_SIGNATURE="application/x-vnd.qt5-qupzilla"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/qupzilla.rdef > qupzilla.rdef
addResourcesToBinaries qupzilla.rdef $appsDir/QupZilla/QupZilla
addAppDeskbarSymlink $appsDir/QupZilla/QupZilla
}