summaryrefslogtreecommitdiff
path: root/app-text/koodo-reader-bin/koodo-reader-bin-1.6.3.ebuild
blob: 9e6b27d32788ae3c0db65eae833abddfe4fa5275 (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
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit rpm xdg
DESCRIPTION="A modern ebook manager and reader with sync and backup capacities"
HOMEPAGE="https://koodo.960960.xyz/"
SRC_URI="https://github.com/troyeguo/koodo-reader/releases/download/v${PV}/Koodo.Reader-${PV}-x86_64.rpm"
S="${WORKDIR}"

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

DEPEND="
	x11-libs/libXcomposite
	x11-libs/libXdamage
	x11-libs/libXfixes
	x11-libs/libXrandr
	media-libs/alsa-lib
	>=app-accessibility/at-spi2-core-2.46.0
	net-print/cups
	x11-libs/libdrm
	media-libs/mesa
	x11-libs/gtk+:3
	x11-libs/gdk-pixbuf
	dev-libs/nss
	x11-libs/pango
	x11-libs/libxkbcommon
"
RDEPEND="${DEPEND}"

QA_PREBUILT="opt/*"

src_install() {
	insinto /opt
	doins -r "${S}"/opt/Koodo\ Reader
	dosym ../../opt/Koodo\ Reader/koodo-reader "${EPREFIX}/usr/bin/koodo-reader"
	fperms +x /opt/Koodo\ Reader/koodo-reader
	insinto /usr
	doins -r "${S}"/usr/share
	doins -r "${S}"/usr/lib
}