blob: 0e2ced4a33ce6ebfddf67c58198e1bd6de8ed4cb (
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 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
inherit desktop
DESCRIPTION="Themeable and easy to use TV Guide - written in Java"
HOMEPAGE="https://www.tvbrowser.org"
MY_PN="tvbrowser"
SRC_URI="https://sourceforge.net/projects/tvbrowser/files/TV-Browser%20Releases%20%28Java%2011%20and%20higher%29/${PV}/${MY_PN}_${PV}_bin.tar.gz/download -> ${P}.tar.gz"
S="${WORKDIR}"/"${MY_PN}-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
JAVA_SLOT=11
RDEPEND="|| ( dev-java/openjdk:${JAVA_SLOT}
dev-java/openjdk-bin:${JAVA_SLOT}
dev-java/openjdk-jre-bin:${JAVA_SLOT} )"
src_install() {
# Copy files and directories
insinto /opt/"${P}"
doins -r *
# Generate launcher
exeinto /opt/bin
sed -e "s/^P=.*\$/P=${P}/" \
-e "s/^JAVA_SLOT=.*\$/JAVA_SLOT=${JAVA_SLOT}/" \
"${FILESDIR}"/tvbrowser | \
newexe - tvbrowser || die
# Generate desktop entry
make_desktop_entry tvbrowser "TV-Browser" \
/opt/"${P}"/imgs/tvbrowser128.png \
"AudioVideo;TV;Video"
}
|