1SUMMARY="A Bittorrent client" 2DESCRIPTION="The qBittorrent project aims to provide an open-source software \ 3alternative to ��Torrent for decentralized peer-to-peer file sharing. 4 5Some of qBittorrent's main features: 6 7* No Ads 8* Well-integrated and extensible search engine 9* Many Bittorrent extensions supported (Magnet links, DHT, PEX, LSD, Private \ 10torrents, encrypted connections 11* Remote control through Web user interface, written with AJAX 12* Sequential downloading (download in order) 13* Bandwidth scheduler 14* Torrent creation tool 15* IP Filtering (eMule & PeerGuardian format compatible) 16* UPnP / NAT-PMP port forwarding support 17 18qBittorrent is based on the Qt toolkit and libtorrent-rasterbar library." 19HOMEPAGE="https://www.qbittorrent.org/" 20COPYRIGHT="2006-2020 The qBittorrent project" 21LICENSE="MIT" 22REVISION="4" 23SOURCE_URI="https://github.com/qbittorrent/qBittorrent/archive/release-$portVersion.tar.gz" 24CHECKSUM_SHA256="4428ed710cfbcc48e75c4cdb014b803ea3f67311f55f4cba0d148987986bd6c8" 25SOURCE_DIR="qBittorrent-release-$portVersion" 26PATCHES="qbittorrent-$portVersion.patchset" 27ADDITIONAL_FILES="qbittorrent.rdef.in" 28 29ARCHITECTURES="all !x86_gcc2" 30SECONDARY_ARCHITECTURES="x86" 31 32PROVIDES=" 33 qbittorrent$secondaryArchSuffix = $portVersion 34 app:qBittorrent = $portVersion 35 " 36REQUIRES=" 37 haiku$secondaryArchSuffix 38 lib:libboost_system$secondaryArchSuffix 39 lib:libexecinfo$secondaryArchSuffix 40 lib:libGL$secondaryArchSuffix 41 lib:libQt5Concurrent$secondaryArchSuffix 42 lib:libQt5Gui$secondaryArchSuffix 43 lib:libQt5Network$secondaryArchSuffix 44 lib:libQt5Widgets$secondaryArchSuffix 45 lib:libQt5Xml$secondaryArchSuffix 46 lib:libssl$secondaryArchSuffix 47 lib:libtorrent_rasterbar$secondaryArchSuffix 48 lib:libz$secondaryArchSuffix 49 " 50 51BUILD_REQUIRES=" 52 haiku${secondaryArchSuffix}_devel 53 devel:libboost_system$secondaryArchSuffix >= 1.83.0 54 devel:libexecinfo$secondaryArchSuffix 55 devel:libGL$secondaryArchSuffix 56 devel:libQt5Concurrent$secondaryArchSuffix 57 devel:libQt5Gui$secondaryArchSuffix 58 devel:libQt5Network$secondaryArchSuffix 59 devel:libQt5Widgets$secondaryArchSuffix 60 devel:libQt5Xml$secondaryArchSuffix 61 devel:libssl$secondaryArchSuffix 62 devel:libtorrent_rasterbar$secondaryArchSuffix 63 devel:libz$secondaryArchSuffix 64 " 65BUILD_PREREQUIRES=" 66 cmd:aclocal 67 cmd:autoconf 68 cmd:awk 69 cmd:cut 70 cmd:gcc$secondaryArchSuffix 71 cmd:ld$secondaryArchSuffix 72 cmd:lrelease$secondaryArchSuffix 73 cmd:make 74 cmd:pkg_config$secondaryArchSuffix 75 cmd:qmake$secondaryArchSuffix 76 " 77 78BUILD() 79{ 80 bootstrap.sh 81 BOOST_CPPFLAGS="-I/system/$relativeHeadersDir" runConfigure \ 82 ./configure --with-boost-libdir=/system/$relativeLibDir \ 83 --disable-qt-dbus 84 make $jobArgs 85} 86 87INSTALL() 88{ 89 make install 90 91 mkdir -p $appsDir/qBittorrent/translations 92 cp dist/qt-translations/*.qm $appsDir/qBittorrent/translations 93 mv $prefix/bin/qbittorrent $appsDir/qBittorrent/qBittorrent 94 rm -r $prefix/{bin,data,documentation} 95 strip $appsDir/qBittorrent/qBittorrent 96 97 APP_SIGNATURE="application/x-vnd.qt5-qbittorrent" 98 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 99 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 100 local MINOR="`echo "$portVersion" | cut -d. -f3`" 101 local LONG_INFO="$SUMMARY" 102 sed \ 103 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 104 -e "s|@MAJOR@|$MAJOR|" \ 105 -e "s|@MIDDLE@|$MIDDLE|" \ 106 -e "s|@MINOR@|$MINOR|" \ 107 -e "s|@LONG_INFO@|$LONG_INFO|" \ 108 $portDir/additional-files/qbittorrent.rdef.in > qbittorrent.rdef 109 110 addResourcesToBinaries qbittorrent.rdef $appsDir/qBittorrent/qBittorrent 111 addAppDeskbarSymlink $appsDir/qBittorrent/qBittorrent 112} 113