tis-inkscape icon

Inkscape

Paquet d’installation silencieuse pour Inkscape

1.3.1-1

  • package: tis-inkscape
  • name: Inkscape
  • version: 1.3.1-1
  • categories: Utilities
  • maintainer: WAPT Team,Jimmy PELÉ,Simon Fonteneau,Pierre Cosson
  • editor: Inkscape.org
  • licence: GPLv3+
  • locale: all
  • target_os: darwin
  • impacted_process: inkscape
  • architecture: x64
  • signature_date:
  • size: 153.30 Mo
  • homepage : https://inkscape.org/

package           : tis-inkscape
version           : 1.3.1-1
architecture      : x64
section           : base
priority          : optional
name              : Inkscape
categories        : Utilities
maintainer        : WAPT Team,Jimmy PELÉ,Simon Fonteneau,Pierre Cosson
description       : Inkscape is a free vector drawing software under the GNU GPL license
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : darwin
min_wapt_version  : 1.5
sources           : https://gitlab.com/inkscape/inkscape
installed_size    : 
impacted_process  : inkscape
description_fr    : Inkscape est un logiciel libre de dessin vectoriel sous licence GNU GPL
description_pl    : Inkscape jest wolnym programem do rysowania wektorów na licencji GNU GPL
description_de    : Inkscape ist ein freies Vektorzeichenprogramm unter der GNU GPL Lizenz
description_es    : Inkscape es un software libre de dibujo vectorial bajo la licencia GNU GPL
description_pt    : Inkscape é um software livre de desenho vectorial sob a licença GNU GPL
description_it    : Inkscape è un software di disegno vettoriale gratuito con licenza GNU GPL
description_nl    : Inkscape is een gratis vectortekenprogramma onder de GNU GPL licentie
description_ru    : Inkscape - это бесплатная программа для рисования векторов под лицензией GNU GPL
audit_schedule    : 
editor            : Inkscape.org
keywords          : inkscape,drawing,vector
licence           : GPLv3+
homepage          : https://inkscape.org/
package_uuid      : b98666a7-9923-447f-951b-259a67e25f46
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://inkscape.org/release
min_os_version    : 
max_os_version    : 
icon_sha256sum    : a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : h4awkBdc/BUbIr4AYybNXnbXGbJqDNEkpQcnfQvK99oLIznBjUizieUNN0VXBtgN3cyZIfB3ljhPFpVzHSi2nU/wPurMEUIIyy9y88UCt3iTNscTUgSTBVYG3IbaHhXHiYSkEV0+8ASgG19JYpL7rJD8yP6ihlK9SodvIjGBLPsCG4uY9M0K6L6ZVO/66T2h5WBRbtDn+a0JnZhBTGA7jgW47PZFhMBEUuJ5T9UOQOkzLl9a8jdVxNRnX8TsXXm3/zGkAi8Z64C8gEjzbO9kJ/2dNiyIpsUtU4jUztQB4BbEl9qFeAxLeF5lW20LwNsJre5ogzZQp/3Lhb8ixZ1Mqw==
signature_date    : 2023-11-23T21:02:08.349838
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

# -*- coding: utf-8 -*-
from setuphelpers import *
import shutil

uninstallkey = []
bin_name_string = "Inkscape-%s.dmg"


def install():
    install_dmg("Inkscape-%s.dmg" % control.version.split("-")[0])


def uninstall():
    shutil.rmtree("/Applications/Inkscape.app")

# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
import bs4 as BeautifulSoup

bin_name_string = "Inkscape-%s.dmg"


def update_package():
    print("Download/Update package content from upstream binary sources")

    # Getting proxy informations from WAPT settings
    proxy = {}
    if isfile(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini")):
        proxywapt = inifile_readstring(makepath(user_local_appdata(), "waptconsole", "waptconsole.ini"), "global", "http_proxy")
        if proxywapt:
            proxy = {"http": proxywapt, "https": proxywapt}

    url = "https://inkscape.org/release/?latest=1"

    # Getting latest version from official website
    page = requests.get(url, proxies=proxy).text
    bs = BeautifulSoup.BeautifulSoup(page)
    bs_raw_string = bs.find("h2", text="Revisions")
    label = bs_raw_string.findNext().findNext()
    version = label.find("label").text

    latest_bin = bin_name_string % version
    # https://inkscape.org/release/inkscape-1.2/mac-os-x/dmg/dl/
    url_dl = "https://inkscape.org/release/inkscape-%s/mac-os-x/dmg/dl/" % version
    bin_url = "https://inkscape.org/" + wgets(url_dl).split(".dmg")[0].split("=")[-1] + ".dmg"
    print("Last version %s" % version)

    if len(version.split(".")) == 2:
        version = version + ".0"
    newfilename = bin_name_string % version
    # Downloading latest binaries
    if not isfile(newfilename):
        print("Downloading: " + newfilename)
        wget(bin_url, newfilename, proxies=proxy)

        print("Update package done. You can now build-upload your package")

    control.version = "%s-1" % newfilename.split("-")[1].strip(".dmg")
    control.save_control_to_wapt()

    # Deleting outdated binaries
    for bin_in_dir in glob.glob("*.dmg"):
        if bin_in_dir != newfilename:
            print("Outdated binary: " + bin_in_dir + " Deleted")
            remove_file(bin_in_dir)

a92c0804aae3a2dc441f114b118524e9865a0f8322b40a1d7227e07a75934a70 : setup.py
d906c6c00f4f873b57bc4e752650030b5868d2d359ecdff709a43c4e7c520026 : update_package.py
a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
a3a2c9176f4e0339474dd52fc156a1e64dd3d6770ac0c29f1fc6942d97394446 : luti.json
e1ff7996e81550ca346d6178a148c7523cf04947fb710d2be2df8ed0ed2da285 : Inkscape-1.3.1.dmg
416e96e55714c43f57b60c938fc15fbfac5e1ab77608e17dd523e7aba75815b0 : WAPT/control