aboutsummaryrefslogtreecommitdiff
blob: 0dbf4ce0c76872c9b46625de9773c7ace4abf9ff (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
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit desktop unpacker xdg

DESCRIPTION="https://github.com/FreeTubeApp/FreeTube"
HOMEPAGE="https://freetubeapp.io/"
SRC_URI="https://github.com/FreeTubeApp/FreeTube/releases/download/v${PV}-beta/freetube_${PV}_amd64.deb"

S="${WORKDIR}"

LICENSE="AGPL-3+"
SLOT="0"
KEYWORDS="~amd64"

QA_PREBUILT="/opt/FreeTube/*"

DEPEND="net-print/cups"
RDEPEND="${DEPEND}"

src_configure() {
	unpack_deb "${DISTDIR}"/freetube_"${PV}"_amd64.deb
}

src_install() {
	DESTDIR="${D}"
	insinto /opt
	doins -r opt/*
	domenu usr/share/applications/freetube.desktop
	for size in {16,32,48,64,128,256}; do
		doicon -s ${size} usr/share/icons/hicolor/${size}x${size}/apps/freetube.png
	done
	fperms 4755 /opt/FreeTube/chrome-sandbox || die
	fperms +x  /opt/FreeTube/freetube || die
	dosym ../../opt/FreeTube/freetube /usr/bin/freetube-bin
}