SHARE
TWEET

autofirma-1.6.1

a guest Feb 20th, 2018 327 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Miguel Revilla <yo at miguelrevilla dot com>
  2.  
  3. pkgname=autofirma
  4. pkgver=1.6.1
  5. pkgrel=1
  6. pkgdesc='Spanish Government digital signature client'
  7. arch=('i686' 'x86_64')
  8. url='http://firmaelectronica.gob.es'
  9. license=('GPL' 'EUPL')
  10. depends=('java-runtime=8' 'nss' 'firefox')
  11. makedepends=('binutils')
  12. source=('http://estaticos.redsara.es/comunes/autofirma/currentversion/AutoFirma_Linux.zip')
  13. sha512sums=('e7352c513686a33371ce9e00ef8da877f619930c60519131d9ab94b67a2e399f18f94bde162f09ba4582a9ef40d4226afbbb005ce35011872b8f69218347b6a9')
  14.  
  15. prepare() {
  16.     ar -x AutoFirma_`echo "${pkgver}"| tr '.' '_'`.deb
  17.     tar -xf data.tar.xz
  18. }
  19.  
  20. package() {
  21.     mkdir -p "${pkgdir}"/usr/lib/firefox/defaults/pref/
  22.     cp -d --no-preserve=ownership etc/firefox/pref/AutoFirma.js "${pkgdir}"/usr/lib/firefox/defaults/pref/
  23.     cp -dr --no-preserve=ownership usr "${pkgdir}"/
  24.  
  25.     mkdir -p "${pkgdir}"/usr/share/licenses/autofirma/
  26.     ln -s /usr/share/doc/AutoFirma/copyright "${pkgdir}"/usr/share/licenses/autofirma/LICENSE
  27.  
  28.     java -jar "${pkgdir}"/usr/lib/AutoFirma/AutoFirmaConfigurador.jar
  29.     mkdir -p "${pkgdir}"/usr/share/ca-certificates/trust-source/anchors
  30.     mv "${pkgdir}"/usr/lib/AutoFirma/AutoFirma_ROOT.cer "${pkgdir}"/usr/share/ca-certificates/trust-source/anchors/AutoFirma_ROOT.cer
  31.  
  32.     chmod 644 "${pkgdir}"/usr/share/applications/afirma.desktop
  33.     chmod 644 "${pkgdir}"/usr/share/doc/AutoFirma/copyright
  34. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top