SUMMARY="BitTorrent client in C++ and Qt" DESCRIPTION="The qBittorrent project aims to provide an open-source software \ alternative to µTorrent. Additionally, qBittorrent runs and provides the same features on all major \ platforms (Linux, Mac OS X, Windows, OS/2, FreeBSD). qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library." HOMEPAGE="https://www.qbittorrent.org/" COPYRIGHT="2006-2018 The qBittorrent project" LICENSE="MIT" REVISION="1" SOURCE_URI="https://github.com/qbittorrent/qBittorrent/archive/release-$portVersion.tar.gz" CHECKSUM_SHA256="c12d11ebd1127b2493cfc623cc7f2ecd7cb2fd15f27a091383767d4c9b04a2d1" SOURCE_DIR="qBittorrent-release-$portVersion" PATCHES="qbittorrent-$portVersion.patchset" ADDITIONAL_FILES="qbittorrent.rdef.in" ARCHITECTURES="!x86_gcc2 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" qbittorrent$secondaryArchSuffix = $portVersion app:qBittorrent = $portVersion " REQUIRES=" haiku$secondaryArchSuffix lib:libboost_system$secondaryArchSuffix lib:libexecinfo$secondaryArchSuffix lib:libGL$secondaryArchSuffix lib:libQt5Concurrent$secondaryArchSuffix lib:libQt5Gui$secondaryArchSuffix lib:libQt5Network$secondaryArchSuffix lib:libQt5Widgets$secondaryArchSuffix lib:libQt5Xml$secondaryArchSuffix lib:libssl$secondaryArchSuffix lib:libtorrent_rasterbar$secondaryArchSuffix lib:libz$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libboost_system$secondaryArchSuffix >= 1.63.0 devel:libexecinfo$secondaryArchSuffix devel:libGL$secondaryArchSuffix devel:libQt5Concurrent$secondaryArchSuffix devel:libQt5Gui$secondaryArchSuffix devel:libQt5Network$secondaryArchSuffix devel:libQt5Widgets$secondaryArchSuffix devel:libQt5Xml$secondaryArchSuffix devel:libssl$secondaryArchSuffix devel:libtorrent_rasterbar$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:awk cmd:cut cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { bootstrap.sh BOOST_CPPFLAGS="-I/system/$relativeHeadersDir" runConfigure \ ./configure --with-boost-libdir=/system/$relativeLibDir \ --disable-qt-dbus make $jobArgs } INSTALL() { make install mkdir -p $appsDir/qBittorrent/translations cp dist/qt-translations/*.qm $appsDir/qBittorrent/translations mv $prefix/bin/qbittorrent $appsDir/qBittorrent/qBittorrent rm -r $prefix/{bin,data,documentation} strip $appsDir/qBittorrent/qBittorrent APP_SIGNATURE="application/x-vnd.qt5-qbittorrent" 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/qbittorrent.rdef.in > qbittorrent.rdef addResourcesToBinaries qbittorrent.rdef $appsDir/qBittorrent/qBittorrent addAppDeskbarSymlink $appsDir/qBittorrent/qBittorrent }