void-packages/srcpkgs/autofirma/template

40 lines
1.2 KiB
Bash

# 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() {
. /etc/profile.d/jdk.sh
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"
}