mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
133 lines
3.9 KiB
Bash
133 lines
3.9 KiB
Bash
SUMMARY="A simple feed reader which supports web-based feed services"
|
|
DESCRIPTION="RSS Guard is simple RSS/ATOM feed reader which supports many \
|
|
online RSS services:
|
|
|
|
* Tiny Tiny RSS,
|
|
* Inoreader,
|
|
* Nextcloud News,
|
|
* Gmail,
|
|
* FreshRSS,
|
|
* The Old Reader,
|
|
* Bazqux,
|
|
* Reedah,
|
|
* Feedly."
|
|
HOMEPAGE="https://github.com/martinrotter/rssguard"
|
|
COPYRIGHT="2011-2022 Martin Rotter"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/martinrotter/rssguard/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="b404e3d8310c58ffb337bf1d2eb2c7cc10a692b00ed2666af30bd0153413cc05"
|
|
SOURCE_FILENAME="rssguard-$portVersion.tar.gz"
|
|
ADDITIONAL_FILES="rssguard.rdef.in"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
rssguard$secondaryArchSuffix = $portVersion
|
|
app:rssguard$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Multimedia$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Positioning$secondaryArchSuffix
|
|
lib:libQt5PrintSupport$secondaryArchSuffix
|
|
lib:libQt5Qml$secondaryArchSuffix
|
|
lib:libQt5QmlModels$secondaryArchSuffix
|
|
lib:libQt5Quick$secondaryArchSuffix
|
|
lib:libQt5Sql$secondaryArchSuffix
|
|
lib:libQt5WebEngineCore$secondaryArchSuffix
|
|
lib:libQt5WebEngineWidgets$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
lib:libQt5WebChannel$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
|
|
REQUIRES+="
|
|
lib:libQt5WebEngineCore$secondaryArchSuffix
|
|
lib:libQt5WebEngineWidgets$secondaryArchSuffix
|
|
"
|
|
fi
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Multimedia$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Positioning$secondaryArchSuffix
|
|
devel:libQt5PrintSupport$secondaryArchSuffix
|
|
devel:libQt5Sql$secondaryArchSuffix
|
|
devel:libQt5Qml$secondaryArchSuffix
|
|
devel:libQt5QmlModels$secondaryArchSuffix
|
|
devel:libQt5Quick$secondaryArchSuffix
|
|
devel:libQt5WebEngineCore$secondaryArchSuffix
|
|
devel:libQt5WebEngineWidgets$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
devel:libQt5WebChannel$secondaryArchSuffix
|
|
"
|
|
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
|
|
BUILD_REQUIRES+="
|
|
devel:libQt5WebEngineCore$secondaryArchSuffix
|
|
devel:libQt5WebEngineWidgets$secondaryArchSuffix
|
|
"
|
|
fi
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:lrelease$secondaryArchSuffix >= 5
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
defineDebugInfoPackage rssguard$secondaryArchSuffix \
|
|
"$appsDir"/RSSGuard/RSSGuard
|
|
|
|
BUILD()
|
|
{
|
|
maybe_webengine="-DUSE_WEBENGINE=OFF"
|
|
if [ "$effectiveTargetArchitecture" = x86_64 ]; then
|
|
maybe_webengine="-DUSE_WEBENGINE=ON"
|
|
fi
|
|
|
|
cmake -S . -B build -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX:PATH="$appsDir/RSSGuard" \
|
|
$maybe_webengine
|
|
|
|
ninja -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
mv $appsDir/RSSGuard/bin/rssguard $appsDir/RSSGuard/RSSGuard
|
|
rm -rf $appsDir/RSSGuard/{bin,include,share}
|
|
|
|
# Add Haiku resources
|
|
local APP_SIGNATURE="application/x-vnd.qt5-rssguard"
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`"
|
|
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/rssguard.rdef.in > rssguard.rdef
|
|
|
|
addResourcesToBinaries rssguard.rdef $appsDir/RSSGuard/RSSGuard
|
|
addAppDeskbarSymlink $appsDir/RSSGuard/RSSGuard
|
|
}
|