summaryrefslogtreecommitdiff
path: root/app-misc/ani-cli/ani-cli-9999.ebuild
blob: dbe97a9d24d4cc54498312f5e30cd8f8288ae50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A cli to browse and watch anime."
HOMEPAGE="https://github.com/pystardust/ani-cli"
if [[ "${PV}" == *9999* ]]; then
	EGIT_REPO_URI="https://github.com/pystardust/${PN}.git"
	inherit git-r3
else
	SRC_URI="
		https://github.com/pystardust/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	"
	S="${WORKDIR}/${P}"
	KEYWORDS="~amd64 ~arm64 ~x86"
fi

LICENSE="GPL-3"
SLOT="0"

DEPEND="
	app-shells/fzf
	media-video/mpv
	net-misc/aria2[adns]
	net-misc/curl
	net-misc/yt-dlp
"

RDEPEND="${DEPEND}"

src_install() {
	dobin "${PN}"
	doman "${PN}.1"
}