tis-inkscape icon

Inkscape

Paquet d’installation silencieuse pour Inkscape

1.4-4

  • package: tis-inkscape
  • name: Inkscape
  • version: 1.4-4
  • 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: arm
  • signature_date:
  • size: 149.90 Mo
  • homepage : https://inkscape.org/

package           : tis-inkscape
version           : 1.4-4
architecture      : arm
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      : cc0ef7d0-45b5-488a-a0c1-b43a76c6f43f
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_date    : 2025-01-26T12:11:57.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         : fe4rcd6vrIg2r3gxWP7F0tjUHZBgFuvTl47VuCLJTfnvUlLsgKAPAq94BtifA6l0wVDy8ebnQB7GSe0SYt3I/PBU7sHwKIt99jd/DC1MpKP+6CLwATgslN9azq+W63LIOdnUTHs/QJzoygppbmUABYjEt4DQq/JuVX2Tt/atQR+oQzJvO9x33lji6vSLMoDJgEUg5Q2uHc99dh/71cl+J18iPmtRDqwFMfZPY5ioMY7xuWEYpEYR6J7WNWYxsNoLv1rYOXRIqn6SbLWvOK6Cr1UzLVUIKjlwrcgPGzAfAlAYYOqm88bxGJoukmy/Z65lEInpgjrux/GIvuFV0buzYA==

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


def install():
    bin_name = glob.glob('Inkscape-*_arm64.dmg')[0]
    install_dmg(bin_name)


def uninstall():
    remove_tree("/Applications/Inkscape.app")

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


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

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

    # Getting latest version from official website
    page = requests.get(url, proxies=proxies).text
    bs = BeautifulSoup.BeautifulSoup(page)

    bs_raw_string = bs.find("h2", text="Revisions")
    label = bs_raw_string.findNext().findNext()
    version = label.find("label").get_text(strip=True)

    os_dict = {
        'x64': f"https://inkscape.org/release/inkscape-{version}/mac-os-x/dmg/dl/",
        'arm': f"https://inkscape.org/release/inkscape-{version}/mac-os-x/dmg-arm64/dl/"
    }

    download_url = "https://inkscape.org/" + wgets(os_dict[control.architecture]).split(".dmg")[0].split("=")[-1] + ".dmg"
    latest_bin = download_url.rsplit('/', 1)[-1]
    latest_bin_extension = latest_bin.rsplit('.', 1)[-1]

    # Downloading latest binaries
    print(f"Latest {app_name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.{latest_bin_extension}'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

c2d89809ad8d85021e7784e72e28aee2231b0b8675ec3ede3e6fb9f1ffedb4b3 : Inkscape-1.4.028868_arm64.dmg
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
d58e5d164c4642c6b61315e39fd010f41e0bb7babfec6bed1b8eb87709d32683 : WAPT/control
a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9 : WAPT/icon.png
68548c42999acd0134b6af034ab3f95513bd155b2b77cc72e272fb56d9604995 : luti.json
ff0fa0cf2cc4a256c6db278f0f0b6b45629738bc6672e900497a1dfc70c97067 : setup.py
fb090d123bf20cefcb1c46d65bddecaed0cc1522c586efc11a988ad170e34b6d : update_package.py