# -*- 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.15 v
revision            0
categories          www multimedia anime
platforms           any
license             GPL-3
maintainers         {@barracuda156 macos-powerpc.org:barracuda}
description         Cli tool to browse and play anime
long_description    {*}${description}
checksums           rmd160  08dc87c61cdcd455cd1ad4e635c8302c7c075d92 \
                    sha256  7ede3794978dc2eec87475e0ea96449a604a2589e940c1eab6bfbddb8529f973 \
                    size    478720
github.tarball_from archive
supported_archs     noarch

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

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

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