tis-pandoc icon

Pandoc

Silent install package for Pandoc

3.7.0.1-2

  • package: tis-pandoc
  • name: Pandoc
  • version: 3.7.0.1-2
  • maintainer: Jordan ARNAUD
  • licence: GNU GENERAL PUBLIC LICENSE
  • target_os: debian_based
  • architecture: arm64
  • signature_date:
  • size: 36.05 Mo
  • homepage : https://pandoc.org/

package           : tis-pandoc
version           : 3.7.0.1-2
architecture      : arm64
section           : base
priority          : optional
name              : Pandoc
categories        : 
maintainer        : Jordan ARNAUD
description       : Pandoc can convert documents to markdown, reStructuredText, textile, HTML, DocBook, LaTeX and many others.
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : debian_based
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Pandoc peut convertir des documents en markdown, reStructuredText, textile, HTML, DocBook, LaTeX et bien d autres.
description_pl    : Pandoc może konwertować dokumenty do formatu Markdown, ReStructuredText, tekstylnego, HTML, DocBook, LaTeX i wielu innych.
description_de    : Pandoc kann Dokumente in Markdown, reStructuredText, Textile, HTML, DocBook, LaTeX und viele andere konvertieren.
description_es    : Pandoc puede convertir documentos a Markdown, reStructuredText, textil, HTML, DocBook, LaTeX y muchos otros.
description_pt    : Pandoc pode converter documentos em markdown, reStructuredText, têxtil, HTML, DocBook, LaTeX e muitos outros.
description_it    : Pandoc può convertire documenti in markdown, reStructuredText, tessile, HTML, DocBook, LaTeX e molti altri.
description_nl    : Pandoc kan documenten converteren naar markdown, reStructuredText, textiel, HTML, DocBook, LaTeX en vele andere.
description_ru    : Pandoc может конвертировать документы в Markdown, reStructuredText, Textile, HTML, DocBook, LaTeX и многие другие.
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU GENERAL PUBLIC LICENSE
homepage          : https://pandoc.org/
package_uuid      : e69d99f2-3d54-44c8-8b67-dc3dcad9e755
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/jgm/pandoc/blob/main/changelog.md
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 22de6a0dfd701ba4d09d6f12a7dba7ba5049806ef80197b1a725a05280868691
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-28T11:09:22.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : OyzB3v6VhiQVI6bk48p/6Y8cDpslp0JFqDJUI3Jd7upAUY8NDhF7ktynx6AcBzKpkD5yDV8gOXUDWs/nR9l4PA7O9hQmwN8qrJ4In1rebbgxJX73bMqP6VUro53adbLzuctukHE2ODLFZFz1B89ddGxNxl6NlWNLvxFwRdJif4EXWuRMe/TahH6FcxqQw6rcGg9sZdJ1fQl/sLhR6MKrlM7M8OwBcwhpytWZGDE9T2Kmuz2X8FaD0P2gP43wtHXw/+NzFTdkHzP3rfWRB/RwrmXTCwBIvQqSBDYxlxbaKAA4R7CHkyQkit7pYiUi6aOrcPf5RWoP9v6bQQxwHHK0YA==

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2024
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *


def install():
    install_deb(glob.glob("pandoc-*.deb")[0])


def uninstall():
    uninstall_apt("pandoc")

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/jgm/pandoc/releases/latest"
    update_dict = {
        "bin_contains": {
            "windows-x64": "windows-x86_64.msi",
            "debian_based-x64": "amd64.deb",
            "debian_based-arm64" :"arm64.deb",
            "darwin-arm64": "arm64-macOS.pkg",
            "darwin-x64": "x86_64-macOS.pkg"
        },
    }

# Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = wgets(api_url, proxies=proxies, as_json=True)
    version = json_load["tag_name"].replace("v", "").replace(".windows", "")
    for to_download in json_load["assets"]:
        if update_dict["bin_contains"][control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            latest_bin = to_download["name"]
            #version = to_download["name"].split('-')[1]
            break

    # Deleting binaries
    for f in glob.glob("*.pkg"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)
        
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
05a9be268ee2d184300a9c2c8abd7d802fe59fbe38c302d7fd23329f348d3e7d : WAPT/control
22de6a0dfd701ba4d09d6f12a7dba7ba5049806ef80197b1a725a05280868691 : WAPT/icon.png
0c2fd24f38158f5be0a15db72aeea47dfbc19a3e9a349a1184dadd412d9f9352 : luti.json
3cc1a372485a23519d1182348f7ca698c139079c4f765f88bc60eacb4e2a220d : pandoc-3.7.0.1-1-arm64.deb
e4a91a332e1b697624eef29c6972a386bec0c523249b7679229306a03df97cb6 : setup.py
3afb9345a3739ed64d6112dee6d7d9a167fc7b1244010a1e824eb88044eeb31d : update_package.py