Files
haikuports/net-im/toot/toot-0.42.0.recipe

48 lines
1.0 KiB
Bash

SUMMARY="A Mastodon CLI client"
DESCRIPTION="Toot is a CLI and TUI tool for interacting with Mastodon instances from the command line."
HOMEPAGE="https://github.com/ihabunek/toot"
COPYRIGHT="Ivan Habunek and contributors."
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://github.com/ihabunek/toot/archive/refs/tags/$portVersion.zip"
CHECKSUM_SHA256="47310c992e1c6a0f4dbf508e7a40413661fc108759c9efeb0a8d0c87e91f69f0"
ARCHITECTURES="any"
pythonVersion="3.10"
pythonPackage="python${pythonVersion//.}"
PROVIDES="
toot = $portVersion
cmd:toot = $portVersion
"
REQUIRES="
haiku
cmd:python$pythonVersion
beautifulsoup4_$pythonPackage
click_$pythonPackage
requests_$pythonPackage
tomlkit_$pythonPackage
urwid_$pythonPackage
wcwidth_$pythonPackage
"
BUILD_REQUIRES="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES="
cmd:python$pythonVersion
"
BUILD()
{
echo "Building toot..."
python$pythonVersion setup.py build
}
INSTALL()
{
echo "Installing toot..."
python$pythonVersion setup.py install --root=/ --prefix=$prefix --optimize=1
}