mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 13:03:31 -04:00
app-crypt/autofirma: add 1.8.3
Signed-off-by: Ivan Lloro <ivan.lloro.boada@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST autofirma-1.8.2.zip 51224492 BLAKE2B 22dcf856a9fae720f978976a7e6ac6e55af7b0e4d590ea2f2fe29021af3544600b5fa90460a6a30bdbe44803b8c719e80bfef0638513f8b47a98efc757e611ef SHA512 119bb55726f790eb432cf571ab3e30bf2f7eb166fcaa66c01b77eceba093ee5a10987dfbd73b67524e0bfc8a84e043b8b50ad3553e4364d50d46e3bcfd66103c
|
||||
DIST autofirma-1.8.3.zip 51229179 BLAKE2B 6638ba177e9e924de41bc3b4188f503ecf9135f86036540a29592eee861e9453e2a14e56c686130b056900c4560ecc689a6613e701f5203413ee79c1cf0d9718 SHA512 d31650b6ce051700f77b9011b8ca4e01ac28dcbf8fc4c8badd867f0eee6ab91d05222b9d7eac8df64772f7ec956935d4a2dce2ad7201d5b83acd70b78de4ea90
|
||||
|
||||
52
app-crypt/autofirma/autofirma-1.8.3.ebuild
Normal file
52
app-crypt/autofirma/autofirma-1.8.3.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
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
|
||||
"
|
||||
|
||||
# Upstream blocks wget with no User Agent.
|
||||
SRC_URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip -> ${P}.zip"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
LICENSE="|| ( GPL-2 EUPL-1.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
RDEPEND="virtual/jre:1.8"
|
||||
BDEPEND="app-arch/unzip"
|
||||
|
||||
#pkg_setup() {
|
||||
# Upstream blocks vanilla wget, so we set up a browser User-Agent.
|
||||
# URI="https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
|
||||
#wget -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}" --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
|
||||
# wget --user-agent="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0" ${URI} -O ${DISTDIR}/${P}.zip
|
||||
#}
|
||||
|
||||
pkg_nofetch() {
|
||||
einfo "Please download:"
|
||||
einfo " https://estaticos.redsara.es/comunes/autofirma/$(ver_rs 1- /)/AutoFirma_Linux_Fedora.zip"
|
||||
einfo "and move it to your distfiles directory as autofirma-${PV}.zip."
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
rpm_unpack "./${P}-1.noarch_FEDORA.rpm"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "usr/lib64/${PN}/${PN}.jar"
|
||||
java-pkg_dolauncher
|
||||
java-pkg_dojar "usr/lib64/${PN}/${PN}Configurador.jar"
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user