app-text/koodo-reader-bin: new package

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Shaoyu Tseng <shaoyu0209@tuta.io>
This commit is contained in:
Shaoyu Tseng
2021-07-29 18:07:32 +08:00
parent 4bea68a59c
commit f5e9e26150
3 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST Koodo.Reader-1.2.9.rpm 61757900 BLAKE2B fd1fc7b16c516f7992a1a0ae8995e7c0b66fbe64cf15678d84232ed6c8d778dcfa0b06158acad7fba9b59f998b3c2c82b25e177b820f04de1d5258690256b43a SHA512 fa37dbe1726f21c5f170698c8cd6ffa953a43d50329583a4af69768d4c207669c4999445ebe966e275cdcc36faa122213ed7338d41ad50f5f3e9c2c629ff727d

View File

@@ -0,0 +1,39 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit rpm xdg desktop
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/v1.2.9/Koodo.Reader-1.2.9.rpm"
S="${WORKDIR}"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
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
}
pkg_postinst(){
xdg_desktop_database_update
xdg_icon_cache_update
xdg_mimeinfo_database_update
}
pkg_postrm(){
xdg_desktop_database_update
xdg_icon_cache_update
xdg_mimeinfo_database_update
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>shaoyu0209@tuta.io</email>
<name>Shaoyu Tseng</name>
</maintainer>
<upstream>
<remote-id type="github">troyeguo/koodo-reader</remote-id>
</upstream>
</pkgmetadata>