blob: 3105f16e6f7df98d30cef9442ae4b5783bc0f13f (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop xdg unpacker wrapper
MY_PN="${PN%-bin}"
DESCRIPTION="OpenAudible is a cross-platform audiobook manager designed for Audible users"
HOMEPAGE="https://openaudible.org/"
SRC_URI="
amd64? (
https://github.com/${MY_PN}/${MY_PN}/releases/download/v${PV}/OpenAudible_${PV}_x86_64.deb
)
"
S="${WORKDIR}/opt/OpenAudible"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64"
BDEPEND="app-arch/unzip"
RDEPEND="
net-libs/webkit-gtk
virtual/jre:21
"
QA_PREBUILT="*"
src_unpack() {
unpack_deb ${A}
}
src_prepare() {
rm --force --recursive jre || die
rm --force bin/linux_x86_64/upgrade
default
}
src_install() {
insinto /opt/${MY_PN}
exeinto /opt/${MY_PN}
doins -r *
doins -r .install4j
doexe OpenAudible
exeinto /opt/${MY_PN}/bin/linux_x86_64/
doexe bin/linux_x86_64/ffmpeg
doexe bin/linux_x86_64/whisper-cli
doexe bin/linux_x86_64/whisper-cli-avx2
make_wrapper ${MY_PN} /opt/openaudible/OpenAudible /opt/${MY_PN}
newicon -s 512 share/icons/hicolor/512x512/apps/org.openaudible.OpenAudible.png ${MY_PN}.png
make_desktop_entry ${MY_PN}
}
|