Files
haikuports/haiku-apps/torrentor/torrentor-0.0.5~git.recipe
OscarL a425e46284 torrentor: update to latest commit, and enable recipe. (#11343)
Not perfect, as BitTorrent protocol encryption must be kept disabled to avoid
crashes related to linking to OpenSSL 3, and DHT peer exchange doesn't seems
to be functional.

The latter, plus Torrentor! not allowing to add new trackers, means that only
.torrent files with "fresh enough" tracker info can actually download data.
2024-11-17 15:21:35 +01:00

58 lines
1.4 KiB
Bash

SUMMARY="A torrent client"
DESCRIPTION="Torrentor is a torrent client. The BitTorrent protocol was \
created to relieve servers and speed up downloading files. Users are not \
downloading data from servers, but they are sending and receiving directly \
to/from each other."
HOMEPAGE="https://github.com/HaikuArchives/Torrentor"
COPYRIGHT="2012 Guido Pola"
LICENSE="
MIT
BSD (3-clause)
"
REVISION="1"
srcGitRev="4fe8034ba09cb43e56bd173d583608efe276df5b"
SOURCE_URI="https://github.com/HaikuArchives/Torrentor/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="743e71d6bb9f387edf0542b46d78de8775a883cb5a6961e247b615c7db412e43"
SOURCE_DIR="Torrentor-$srcGitRev"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
torrentor${secondaryArchSuffix} = $portVersion
app:Torrentor = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libevent_2.1$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
devel:libevent_2.1$secondaryArchSuffix
devel:libssl$secondaryArchSuffix >= 3
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:jam
"
BUILD()
{
export NDEBUG=1
export CFLAFS="-Wno-unused-but-set-variable"
jam -q $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
cp build/Release/Torrentor $appsDir
addAppDeskbarSymlink $appsDir/Torrentor
}