void-packages/srcpkgs/autofirma/template

41 lines
1.4 KiB
Bash

# Template file for 'autofirma'
pkgname=autofirma
version=1.8.2
revision=3
_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
vinstall clienteafirma-${version}/afirma-simple-installer/linux/instalador_deb/src/usr/share/applications/afirma.desktop 644 /usr/share/applications
vbin "${FILESDIR}/autofirma"
}