New package: autofirma-1.8.2

This commit is contained in:
Eloi Torrents 2022-12-22 14:04:57 +01:00 committed by classabbyamp
parent f4f66773a5
commit facc85a720
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#! /bin/sh
java -jar /usr/share/java/autofirma/AutoFirma.jar

View File

@ -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"
}