mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit desktop java-utils-2 rpm xdg
|
|
|
|
DESCRIPTION="Spanish government's electronic signature application for online procedures"
|
|
HOMEPAGE="
|
|
https://administracionelectronica.gob.es/ctt/clienteafirma
|
|
https://github.com/ctt-gob-es/clienteafirma
|
|
"
|
|
#TODO: use ver_split instead of hardcoded 1/6/5
|
|
SRC_URI="https://estaticos.redsara.es/comunes/autofirma/1/6/5/AutoFirma_Linux.zip -> ${P}.zip"
|
|
|
|
#TODO: investigate and fix licenses https://github.com/ctt-gob-es/clienteafirma/blob/master/license/LICENSE.txt
|
|
LICENSE="|| ( GPL-2+ EUPL-1.1 )"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="virtual/jre:1.8"
|
|
BDEPEND="app-arch/unzip"
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
default
|
|
rpm_unpack "./${P}-1.noarch.rpm"
|
|
}
|
|
|
|
src_install() {
|
|
#TODO: use $(get_libdir) or mask non ~amd64 arches
|
|
java-pkg_dojar "usr/lib64/${PN}/${PN}.jar"
|
|
java-pkg_dolauncher
|
|
java-pkg_dojar "usr/lib64/${PN}/${PN}Configurador.jar"
|
|
#TODO: icons in /lib are suspect
|
|
doicon "usr/lib64/${PN}/${PN}.png"
|
|
make_desktop_entry "${PN} %u" AutoFirma "${PN}" "Utility" "Comment[es]=Aplicación de firma electrónica de la FNMT\nMimeType=x-scheme-handler/afirma"
|
|
}
|