Skip to content

Commit

Permalink
toot, rework from PR (#9001)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Reidinger <fabianreidinger@social.tchncs.de>
  • Loading branch information
Begasus and Fabian Reidinger committed Jul 7, 2023
1 parent c5da550 commit 23a7b45
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions net-im/toot/toot-0.36.0.recipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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="1"
SOURCE_URI="https://github.com/ihabunek/toot/archive/refs/tags/0.36.0.zip"
CHECKSUM_SHA256="f7e22393180ded59b6e68ec4adaa77059923df5d4b02c3c8c8aa2b91f0fa8741"

ARCHITECTURES="any"

pythonVersion="3.10"
pythonPackage="python${pythonVersion//.}"

PROVIDES="
toot = $portVersion
cmd:toot = $portVersion
"
REQUIRES="
haiku
cmd:python$pythonVersion
beautifulsoup_$pythonPackage
requests_$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
}

0 comments on commit 23a7b45

Please sign in to comment.