-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Fabian Reidinger <fabianreidinger@social.tchncs.de>
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |