Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: autofirma-1.8.2
Date: Thu, 06 Jul 2023 10:05:29 +0200	[thread overview]
Message-ID: <20230706080529.VkrEryvQv7lHv6GmReQTmGgBWJSx6QXrIGj1aJJYGVM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44855@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

There is an updated pull request by Eloitor against master on the void-packages repository

https://github.com/Eloitor/void-packages autofirma
https://github.com/void-linux/void-packages/pull/44855

New package: autofirma-1.8.2
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-musl)

Closes https://github.com/void-linux/void-packages/issues/36872

A patch file from https://github.com/void-linux/void-packages/pull/44855.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-autofirma-44855.patch --]
[-- Type: text/x-diff, Size: 2207 bytes --]

From 83c306e4e51faca4d85d40ff1f112edc7dae47e9 Mon Sep 17 00:00:00 2001
From: Eloi Torrents <eloitor@disroot.org>
Date: Thu, 22 Dec 2022 14:04:57 +0100
Subject: [PATCH] New package: autofirma-1.8.2

---
 srcpkgs/autofirma/files/autofirma |  2 ++
 srcpkgs/autofirma/template        | 39 +++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 srcpkgs/autofirma/files/autofirma
 create mode 100644 srcpkgs/autofirma/template

diff --git a/srcpkgs/autofirma/files/autofirma b/srcpkgs/autofirma/files/autofirma
new file mode 100644
index 000000000000..173e8ac46fd6
--- /dev/null
+++ b/srcpkgs/autofirma/files/autofirma
@@ -0,0 +1,2 @@
+#! /bin/sh
+java -jar /usr/share/java/autofirma/AutoFirma.jar
diff --git a/srcpkgs/autofirma/template b/srcpkgs/autofirma/template
new file mode 100644
index 000000000000..fa0aed46a669
--- /dev/null
+++ b/srcpkgs/autofirma/template
@@ -0,0 +1,39 @@
+# Template file for 'autofirma'
+pkgname=autofirma
+version=1.8.2
+revision=1
+_jmulticard_version=1.8
+hostmakedepends="apache-maven openjdk11"
+depends="virtual?java-environment"
+short_desc="Electronic signature client from the Spanish Public Administration"
+maintainer="Eloi Torrents <eloitor@disroot.org>"
+license="GPL-3.0-or-later"
+homepage="https://firmaelectronica.gob.es/"
+distfiles="https://github.com/ctt-gob-es/clienteafirma/archive/v${version}.tar.gz
+ https://github.com/ctt-gob-es/jmulticard/archive/refs/tags/v${_jmulticard_version}.tar.gz"
+checksum="40ebcd1200129ca08c21176a5fbd64c04ce0ac6bd932c4b213d4b7213f851a0d
+ f79df2e53bb2c89f7c603019fc3d92482756d071947669f798dd76b109a375aa"
+
+# maven-surefire-plugin needed
+make_check=no
+
+do_build() {
+	export JAVA_HOME=/usr/lib/jvm/openjdk11
+	cd "jmulticard-${_jmulticard_version}"
+	mvn clean install -Dmaven.test.skip=true
+	cd "../clienteafirma-${version}"
+	mvn clean install -Denv=install -Dmaven.test.skip=true
+}
+
+do_check() {
+	cd "jmulticard-${_jmulticard_version}"
+	mvn test
+	cd "../clienteafirma-${version}"
+	mvn test
+}
+
+do_install() {
+	vmkdir usr/share/java/${pkgname}
+	vinstall clienteafirma-${version}/afirma-simple/target/AutoFirma.jar 644 usr/share/java/autofirma
+	vbin "${FILESDIR}/autofirma"
+}

  parent reply	other threads:[~2023-07-06  8:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05  9:37 [PR PATCH] " Eloitor
2023-07-05 18:03 ` [PR REVIEW] " classabbyamp
2023-07-05 18:04 ` classabbyamp
2023-07-05 18:05 ` classabbyamp
2023-07-06  7:44 ` [PR PATCH] [Updated] " Eloitor
2023-07-06  7:55 ` Eloitor
2023-07-06  8:03 ` Eloitor
2023-07-06  8:05 ` Eloitor [this message]
2023-07-06  8:10 ` Eloitor
2023-07-10  9:52 ` [PR PATCH] [Merged]: " classabbyamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230706080529.VkrEryvQv7lHv6GmReQTmGgBWJSx6QXrIGj1aJJYGVM@z \
    --to=eloitor@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).