Files
haikuports/app-misc/asciinema/asciinema-2.2.0.recipe
2023-03-06 23:03:57 +01:00

57 lines
1.1 KiB
Bash

SUMMARY="Terminal session recorder"
DESCRIPTION="asciinema lets you easily record terminal sessions and replay \
them in a terminal as well as in a web browser. It is the best companion of \
asciinema.org."
HOMEPAGE="https://asciinema.org/"
COPYRIGHT="2011-2018 Marcin Kulik"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://github.com/asciinema/asciinema/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="cce6f0ed6bcf47d54fe5caae14862bfb5a2e39eec1b3b467a8ed1050c298d0ec"
SOURCE_FILENAME="asciinema-$portVersion.tar.gz"
ARCHITECTURES="any"
USER_SETTINGS_FILES="
settings/asciinema directory
settings/asciinema/config
"
PROVIDES="
asciinema = $portVersion
cmd:asciinema
"
REQUIRES="
haiku
cmd:python3
"
BUILD_REQUIRES="
haiku_devel
build_python39
installer_python39
setuptools_python39
wheel_python39
"
BUILD_PREREQUIRES="
cmd:python3
cmd:sed
"
PATCH()
{
sed -i "s|share/doc/asciinema|$relativeDocDir|
s|share/man|$relativeManDir|" setup.cfg
}
BUILD()
{
rm -rf build
python3 -m build --wheel --no-isolation
}
INSTALL()
{
python3 -m installer -p $prefix dist/*.whl
}