# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        pystardust ani-cli 4.14 v
revision            0
categories          www multimedia anime
platforms           any
license             GPL-3
maintainers         nomaintainer
description         Cli tool to browse and play anime
long_description    {*}${description}
checksums           rmd160  701f599eeb4bbaf66611e86e59b610d52c9a5bfb \
                    sha256  be40c779605b9b5eb4c09e63a1f460bcc69d73a3ab6e707279548fb8513c96c0 \
                    size    475747
github.tarball_from archive
supported_archs     noarch

# avoid broken stuff, use mpv:
patchfiles          patch-use-mpv.diff

depends_run-append  port:aria2 \
                    path:libexec/gnubin/mktemp:coreutils \
                    port:curl \
                    path:bin/ffmpeg:ffmpeg \
                    path:bin/fzf:fzfpp \
                    port:gsed \
                    path:bin/mpv:mpv \
                    port:yt-dlp

use_configure       no
build               { }
destroot {
    xinstall -m 775 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

# Reduces noise:
notes "
    It is recommended to add gnubin to the PATH before running the app:\
    `export PATH=${prefix}/libexec/gnubin:\$PATH`\
"
