Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: autofirma-1.8.2
@ 2023-07-05  9:37 Eloitor
  2023-07-05 18:03 ` [PR REVIEW] " classabbyamp
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Eloitor @ 2023-07-05  9:37 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 664 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/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)


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: 2237 bytes --]

From e97304f79ded8eb0e5c1b518934d3544ab3cb536 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        | 41 +++++++++++++++++++++++++++++++
 2 files changed, 43 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..c9e17d738453
--- /dev/null
+++ b/srcpkgs/autofirma/template
@@ -0,0 +1,41 @@
+# 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="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="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
+	vmkdir usr/share/java/${pkgname}
+	vinstall clienteafirma-${version}/afirma-simple/target/AutoFirma.jar 644 usr/share/java/autofirma
+	vbin "${FILESDIR}/autofirma"
+}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-07-10  9:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-05  9:37 [PR PATCH] New package: autofirma-1.8.2 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
2023-07-06  8:10 ` Eloitor
2023-07-10  9:52 ` [PR PATCH] [Merged]: " classabbyamp

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).