Advertisement
Guest User

JSignPDF 2.0.0 PKGBUILD

a guest
Sep 23rd, 2021
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.86 KB | None | 0 0
  1. # Maintainer:     Jaja <jaja@mailbox.org>
  2. # Co-maintainer:  alisoftware <admin@situsali.com>
  3. #
  4.  
  5. pkgname=jsignpdf
  6. pkgver=2.0.0
  7. pkgrel=1
  8. pkgdesc="Digitally sign PDF files with X.509 certificates in GUI and CLI."
  9. arch=('any')
  10. url="http://jsignpdf.sourceforge.net/"
  11. license=('LGPL' 'MPL' 'CCPL' 'Apache' 'custom')
  12. depends=('java-runtime>=8'
  13.          'bash')
  14. optdepends=('hicolor-icon-theme: icon for launcher'
  15.             'desktop-file-utils: MIME cache update')
  16. source=(
  17.   ${pkgname}-${pkgver}.zip::"https://downloads.sourceforge.net/project/jsignpdf/stable/JSignPdf%20${pkgver}/jsignpdf-${pkgver}.zip"
  18.   jsignpdf_48.png::"https://raw.githubusercontent.com/intoolswetrust/jsignpdf/master/distribution/doc/icon/iconverticons.com/signedpdf_48x48x32.png"
  19.   jsignpdf_128.png::"https://raw.githubusercontent.com/intoolswetrust/jsignpdf/master/distribution/doc/icon/iconverticons.com/signedpdf_128x128x32.png"
  20.   "supplementary.tar.xz")
  21. md5sums=('a6c90aea49a38a48e4673311e3401d9a'
  22.          'a44ef91da28d94fb949e361d19adbbd5'
  23.          'bf2d11e38c706fe183900cce1fab0e38'
  24.          '0d2ebc62ed6bffa1e387fa0ba957cd2a')
  25. changelog=changelog
  26. backup=('usr/share/java/jsignpdf/conf/conf.properties'
  27.         'usr/share/java/jsignpdf/conf/pkcs11.cfg')
  28.  
  29. package() {
  30.   ## file and directory permissions for mv and cp: u=rwx,g=rx,o=rx
  31.   umask 022
  32.   ## licenses
  33.   install -d "${pkgdir}"/usr/share/licenses/"${pkgname}"
  34.   mv "${srcdir}/${pkgname}-${pkgver}"/licenses/* "${pkgdir}"/usr/share/licenses/"${pkgname}"
  35.   ## documentation
  36.   install -Dm644 "${srcdir}/${pkgname}-${pkgver}"/docs/JSignPdf.pdf "${pkgdir}"/usr/share/doc/"${pkgname}"/Quickstart.pdf
  37.   install -Dm644 "${srcdir}/${pkgname}-${pkgver}"/docs/ReleaseNotes.txt "${pkgdir}"/usr/share/doc/"${pkgname}"/ReleaseNotes
  38.   install -d "${pkgdir}"/usr/share/man
  39.   mv "${srcdir}"/manpages/* "${pkgdir}"/usr/share/man
  40.   ## programm files
  41.   install -Dm644 "${srcdir}"/pictures/splash.png "${pkgdir}"/usr/share/java/"${pkgname}"/splash.png
  42.   rm -r "${srcdir}/${pkgname}-${pkgver}"/docs
  43.   mv "${srcdir}/${pkgname}-${pkgver}"/* "${pkgdir}"/usr/share/java/"${pkgname}"
  44.   ## executable scripts
  45.   install -Dm755 "${srcdir}"/launchers/jsignpdf.sh "${pkgdir}"/usr/bin/jsignpdf
  46.   install -Dm755 "${srcdir}"/launchers/jsignpdf-installcert.sh "${pkgdir}"/usr/bin/jsignpdf-installcert
  47.   install -Dm755 "${srcdir}"/launchers/jsignpdf-verifier.sh "${pkgdir}"/usr/bin/jsignpdf-verifier
  48.   install -Dm755 "${srcdir}"/launchers/jsignpdf-signaturecounter.sh "${pkgdir}"/usr/bin/jsignpdf-signaturecounter
  49.   ## .icon and .desktop files
  50.   install -Dm644 "${srcdir}"/jsignpdf_48.png "${pkgdir}"/usr/share/icons/hicolor/48x48/apps/"${pkgname}".png
  51.   install -Dm644 "${srcdir}"/jsignpdf_128.png "${pkgdir}"/usr/share/icons/hicolor/128x128/apps/"${pkgname}".png
  52.   install -Dm644 "${srcdir}"/launchers/jsignpdf.desktop "${pkgdir}"/usr/share/applications/"${pkgname}".desktop
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement