aboutsummaryrefslogtreecommitdiff
blob: 94371499e801431e5d370aafcbc250d18163277e (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
36
37
38
39
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="DZR: the command line deezer.com player"
HOMEPAGE="https://github.com/yne/dzr"
SRC_URI="https://github.com/yne/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Unlicense"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	app-misc/jq[oniguruma]
	dev-libs/openssl
	dev-util/dialog
	media-video/mpv
	net-misc/curl
"
RDEPEND="${DEPEND}"
BDEPEND=""

src_install() {
	exeinto /usr/bin
	doexe dzr
	doexe dzr-dec
	doexe dzr-id3
	doexe dzr-srt
	doexe dzr-url
	default
}

pkg_postinst() {
	einfo "WARNING: For legal reasons this project"
	einfo "does not contain the track decryption key."
	einfo "Please read the following guide first:"
	einfo "https://github.com/yne/dzr/wiki#find-the-dzr_cbc-key"
}