From d231ce495e86b938b8807616399912f3773830db Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Thu, 18 Feb 2021 20:06:29 +0000 Subject: app-misc/autenticacao-gov-bin: added package to overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Santos Package-Manager: Portage-3.0.14, Repoman-3.0.2 --- app-misc/autenticacao-gov-bin/Manifest | 1 + .../autenticacao-gov-bin-3.3.1.ebuild | 75 ++++++++++++++++++++++ app-misc/autenticacao-gov-bin/metadata.xml | 11 ++++ 3 files changed, 87 insertions(+) create mode 100644 app-misc/autenticacao-gov-bin/Manifest create mode 100644 app-misc/autenticacao-gov-bin/autenticacao-gov-bin-3.3.1.ebuild create mode 100644 app-misc/autenticacao-gov-bin/metadata.xml diff --git a/app-misc/autenticacao-gov-bin/Manifest b/app-misc/autenticacao-gov-bin/Manifest new file mode 100644 index 0000000..00c5992 --- /dev/null +++ b/app-misc/autenticacao-gov-bin/Manifest @@ -0,0 +1 @@ +DIST pteid-mw_ubuntu20_amd64.deb 2676492 SHA256 a736ea109a5d2d99366212c91baddeeb9a296251810a8d89bad2b0bac8c243db SHA512 04e145bf33c9d8c6a2f60bcb7e63b1327ab4e8a0dabba6b7b460b2cc0db05476f53394f968cdcc0843b3c74ea2751234eb6da60d7dc7447a48bce55855a63921 WHIRLPOOL 5c75ece94e4728fcb9cecad31f8281431ef6143b41b8d1e6400020578d25f19b980940e8f6115257183d5972e169d53bc783cd404d6026cea667ed2f7e7134b0 diff --git a/app-misc/autenticacao-gov-bin/autenticacao-gov-bin-3.3.1.ebuild b/app-misc/autenticacao-gov-bin/autenticacao-gov-bin-3.3.1.ebuild new file mode 100644 index 0000000..211a33e --- /dev/null +++ b/app-misc/autenticacao-gov-bin/autenticacao-gov-bin-3.3.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit unpacker desktop xdg + +ORIGINAL_PN="pteid-mw" +APP="eidguiV2" +CC_HOME="opt/${PN}" +DESCRIPTION="See and change information on your Portuguese eID Card" +HOMEPAGE="https://www.autenticacao.gov.pt/cc-aplicacao" + +SRC_URI="https://aplicacoes.autenticacao.gov.pt/apps/pteid-mw_ubuntu20_amd64.deb" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="mirror" + +RDEPEND=" + sys-apps/pcsc-tools + app-crypt/ccid + sys-libs/glibc + net-misc/curl + sys-devel/gcc + app-text/poppler[qt5,jpeg2k,png] + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtwidgets:5 + >=dev-libs/openssl-1.1.0 + dev-libs/xerces-c + >=dev-libs/xml-security-c-2.0.0 + dev-libs/libzip +" + +QA_PREBUILT="/usr/bin/* /usr/lib64/*" +QA_PRESTRIPPED="/usr/bin/* /usr/lib64/*" + +S="${WORKDIR}/" + +src_unpack() { + unpack_deb ${A} +} + +src_prepare() { + # Rename docs directory to our needs. + mv usr/share/doc/{${ORIGINAL_PN},${PF}}/ || die + + # Decompress the docs. + gunzip usr/share/doc/${PF}/changelog.gz || die + + # Move folders to the right place + cp -r usr/local/{bin,include,lib} usr/ || die + rm -r usr/local/{bin,include,lib} || die + mv usr/lib usr/lib64 + + # Create folder for the font + mkdir -p usr/share/fonts || die + mv usr/bin/Lato-Regular.ttf usr/share/fonts/ || die + + eapply_user +} + +src_install() { + insinto /usr + doins -r usr/bin usr/include usr/local usr/lib64 usr/share + + exeinto /usr/bin/ + doexe usr/bin/${APP} +} \ No newline at end of file diff --git a/app-misc/autenticacao-gov-bin/metadata.xml b/app-misc/autenticacao-gov-bin/metadata.xml new file mode 100644 index 0000000..1819cf8 --- /dev/null +++ b/app-misc/autenticacao-gov-bin/metadata.xml @@ -0,0 +1,11 @@ + + + + + joaomsantos@gmail.com + João Santos + + + Tool for signing with the Portuguese ID card + + -- cgit v1.2.3-65-gdbad