Github messages for voidlinux
 help / color / mirror / Atom feed
From: Eloitor <Eloitor@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: autofirma-1.7.2
Date: Thu, 29 Dec 2022 17:02:46 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41346@inbox.vuxu.org> (raw)

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

There is a new 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/41346

New package: autofirma-1.7.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 #36872


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

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

From ed8e04b08663f5c64c2f0355e04380f9fcd7a811 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.7.2

---
 srcpkgs/autofirma/files/autofirma |  2 ++
 srcpkgs/autofirma/template        | 43 +++++++++++++++++++++++++++++++
 2 files changed, 45 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..301a3813a6f6
--- /dev/null
+++ b/srcpkgs/autofirma/files/autofirma
@@ -0,0 +1,2 @@
+#! /bin/sh
+java -jar /usr/share/java/autofirma/autofirma.jar/AutoFirma.jar
diff --git a/srcpkgs/autofirma/template b/srcpkgs/autofirma/template
new file mode 100644
index 000000000000..5abdd54100c1
--- /dev/null
+++ b/srcpkgs/autofirma/template
@@ -0,0 +1,43 @@
+# Template file for 'autofirma'
+pkgname=autofirma
+version=1.7.2
+revision=1
+_jmulticard_version=1.7
+
+hostmakedepends="apache-maven openjdk8 tree"
+depends="virtual?java-environment"
+short_desc="Cliente de firma electrónica ofrecido por la Administración Pública"
+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="f3d135f80c5e18e204110f9077f6be708280866600a68e71d9e13af09a1963d5
+eedc93e36ae79b2c36f276ad575bca0d84d3883487439e3f71622cfd4a4b58ac"
+
+# maven-surefire-plugin needed
+make_check=no
+
+do_build() {
+	export PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH"
+	cd "jmulticard-${_jmulticard_version}"
+	mvn clean install -Dmaven.test.skip=true
+	cd ..
+	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() {
+	ls "clienteafirma-${version}/afirma-simple/target/"
+	vmkdir usr/share/java
+	vmkdir usr/share/java/${pkgname}
+	vinstall clienteafirma-${version}/afirma-simple/target/AutoFirma.jar 644 usr/share/java/autofirma/autofirma.jar
+	vbin "${FILESDIR}/autofirma"
+}

             reply	other threads:[~2022-12-29 16:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-29 16:02 Eloitor [this message]
2023-03-09 22:27 ` [PR PATCH] [Updated] " Eloitor
2023-03-11 19:15 ` Eloitor
2023-03-11 19:25 ` Eloitor
2023-06-10  1:59 ` github-actions
2023-06-24  2:05 ` [PR PATCH] [Closed]: " github-actions

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41346@inbox.vuxu.org \
    --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).