mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
198 lines
6.3 KiB
Bash
198 lines
6.3 KiB
Bash
SUMMARY="Advanced download manager by KDE"
|
|
DESCRIPTION="KGet is a versatile and user-friendly download manager.
|
|
|
|
Features:
|
|
* Downloading files from FTP and HTTP(S) sources.
|
|
* Pausing and resuming of downloading files, as well as the ability to restart a download.
|
|
* Tells lots of information about current and pending downloads.
|
|
* Embedding into system tray.
|
|
* Integration with the Konqueror web browser.
|
|
* Metalink support which contain multiple URLs for downloads, along with checksums and other information."
|
|
HOMEPAGE="https://apps.kde.org/kget/"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kget-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="bd10c266c5f22bb716b7559c1b9aa86cd11c285fbe7648ad0f2b0ae8f3579921"
|
|
SOURCE_DIR="kget-$portVersion"
|
|
ADDITIONAL_FILES="kget.rdef.in"
|
|
|
|
# kio issue?
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
kget$secondaryArchSuffix = $portVersion
|
|
app:KGet = $portVersion
|
|
cmd:kget = $portVersion
|
|
lib:libkgetcore$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libassuan$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libgpgmepp$secondaryArchSuffix
|
|
lib:libKTorrent6$secondaryArchSuffix
|
|
lib:libmms$secondaryArchSuffix
|
|
lib:libqca_qt6$secondaryArchSuffix
|
|
lib:libqgpgmeqt6$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6Archive$secondaryArchSuffix
|
|
lib:libKF6AuthCore$secondaryArchSuffix
|
|
lib:libKF6Bookmarks$secondaryArchSuffix
|
|
lib:libKF6Codecs$secondaryArchSuffix
|
|
lib:libKF6ColorScheme$secondaryArchSuffix
|
|
lib:libKF6Completion$secondaryArchSuffix
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libKF6ConfigGui$secondaryArchSuffix
|
|
lib:libKF6ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF6CoreAddons$secondaryArchSuffix
|
|
lib:libKF6Crash$secondaryArchSuffix
|
|
lib:libKF6DBusAddons$secondaryArchSuffix
|
|
lib:libKF6GuiAddons$secondaryArchSuffix
|
|
lib:libKF6I18n$secondaryArchSuffix
|
|
lib:libKF6IconThemes$secondaryArchSuffix
|
|
lib:libKF6ItemViews$secondaryArchSuffix
|
|
lib:libKF6JobWidgets$secondaryArchSuffix
|
|
lib:libKF6KCMUtils$secondaryArchSuffix
|
|
lib:libKF6KIOCore$secondaryArchSuffix
|
|
lib:libKF6Notifications$secondaryArchSuffix
|
|
lib:libKF6NotifyConfig$secondaryArchSuffix
|
|
lib:libKF6Parts$secondaryArchSuffix
|
|
lib:libKF6Service$secondaryArchSuffix
|
|
lib:libKF6Solid$secondaryArchSuffix
|
|
lib:libKF6SonnetUi$secondaryArchSuffix
|
|
lib:libKF6StatusNotifierItem$secondaryArchSuffix
|
|
lib:libKF6TextEditor$secondaryArchSuffix
|
|
lib:libKF6TextWidgets$secondaryArchSuffix
|
|
lib:libKF6WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF6WindowSystem$secondaryArchSuffix
|
|
lib:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
lib:libQt6DBus$secondaryArchSuffix
|
|
lib:libQt6Gui$secondaryArchSuffix
|
|
lib:libQt6Qml$secondaryArchSuffix
|
|
lib:libKF6Wallet$secondaryArchSuffix
|
|
lib:libQt6Widgets$secondaryArchSuffix
|
|
lib:libQt6Xml$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libassuan$secondaryArchSuffix
|
|
devel:libboost_iostreams$secondaryArchSuffix >= 1.88.0
|
|
devel:libboost_system$secondaryArchSuffix >= 1.88.0
|
|
devel:libboost_thread$secondaryArchSuffix >= 1.88.0
|
|
devel:libgpgmepp$secondaryArchSuffix
|
|
devel:libKTorrent6$secondaryArchSuffix
|
|
devel:libmms$secondaryArchSuffix
|
|
devel:libqca_qt6$secondaryArchSuffix
|
|
devel:libqgpgmeqt6$secondaryArchSuffix
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6Archive$secondaryArchSuffix
|
|
devel:libKF6AuthCore$secondaryArchSuffix
|
|
devel:libKF6Bookmarks$secondaryArchSuffix
|
|
devel:libKF6Codecs$secondaryArchSuffix
|
|
devel:libKF6ColorScheme$secondaryArchSuffix
|
|
devel:libKF6Completion$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF6CoreAddons$secondaryArchSuffix
|
|
devel:libKF6Crash$secondaryArchSuffix
|
|
devel:libKF6DBusAddons$secondaryArchSuffix
|
|
devel:libKF6GuiAddons$secondaryArchSuffix
|
|
devel:libKF6I18n$secondaryArchSuffix
|
|
devel:libKF6IconThemes$secondaryArchSuffix
|
|
devel:libKF6ItemModels$secondaryArchSuffix
|
|
devel:libKF6ItemViews$secondaryArchSuffix
|
|
devel:libKF6JobWidgets$secondaryArchSuffix
|
|
devel:libKF6KCMUtils$secondaryArchSuffix
|
|
devel:libKF6KIOCore$secondaryArchSuffix
|
|
devel:libKF6Notifications$secondaryArchSuffix
|
|
devel:libKF6NotifyConfig$secondaryArchSuffix
|
|
devel:libKF6Parts$secondaryArchSuffix
|
|
devel:libKF6Service$secondaryArchSuffix
|
|
devel:libKF6Solid$secondaryArchSuffix
|
|
devel:libKF6SonnetUi$secondaryArchSuffix
|
|
devel:libKF6StatusNotifierItem$secondaryArchSuffix
|
|
devel:libKF6TextEditor$secondaryArchSuffix
|
|
devel:libKF6TextWidgets$secondaryArchSuffix
|
|
devel:libKF6Wallet$secondaryArchSuffix
|
|
devel:libKF6WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF6WindowSystem$secondaryArchSuffix
|
|
devel:libKF6XmlGui$secondaryArchSuffix
|
|
# Qt6
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Core5Compat$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
qthaikuplugins$secondaryArchSuffix
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
# remove dbus service
|
|
sed -e '/KDBusService dbusService/d' -i main.cpp
|
|
sed -e '/QObject::connect(&dbusService/d' -i main.cpp
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DKDE_INSTALL_BINDIR=$appsDir \
|
|
-DCMAKE_SKIP_RPATH=YES \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
# cleanup
|
|
rm -rf $dataDir/{applications,config.kcfg,dbus-1,icons,kio,knotifications6,metainfo}
|
|
|
|
mkdir -p $prefix/bin
|
|
mv $appsDir/kget $appsDir/KGet
|
|
ln -s $appsDir/KGet $prefix/bin/kget
|
|
|
|
local APP_SIGNATURE="application/x-vnd.kde-kget"
|
|
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/kget.rdef.in > kget.rdef
|
|
|
|
addResourcesToBinaries kget.rdef $appsDir/KGet
|
|
addAppDeskbarSymlink $appsDir/KGet
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# 75% tests passed, 1 tests failed out of 4
|
|
ctest --test-dir build --output-on-failure
|
|
}
|