tis-inkscape

1.0.1-2
Inkscape is a free vector drawing software under the GNU GPL license
5651 downloads
Download

  Description 

  • package : tis-inkscape
  • version : 1.0.1-2
  • architecture : x64
  • categories : Utilities
  • maintainer : WAPT Team,Jimmy PELÉ,Simon Fonteneau
  • description : Inkscape is a free vector drawing software under the GNU GPL license
  • locale :
  • target_os : darwin
  • min_os_version :
  • max_os_version :
  • 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 :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Inkscape.org
  • licence : GPLv3+
  • signature_date : 2020-09-17T10:23:33.303358
  • Homepage : https://inkscape.org/

  Setup.py 

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

uninstallkey = []



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

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

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 = wgets(url,proxies=proxy)
    for u in BeautifulSoup.BeautifulSoup(page).findAll('li',{'class':'download'}) :
        if 'mac' in u.a.attrs['href']:
            urlosx = 'https://inkscape.org'  + u.a.attrs['href']
            break

    # Getting latest version from official website
    page = ensure_unicode(wgets(urlosx,proxies=proxy))
    url_dl = 'https://inkscape.org'  +  BeautifulSoup.BeautifulSoup(page).findAll('meta',{'http-equiv':'Refresh'})[0].attrs['content'].split('url=')[1]

    newfilename = url_dl.split('/')[-1]
    v = newfilename.split('-')[1].strip('.dmg')

    print('Last version %s' % v)
    # Downloading latest binaries
    if not isfile(newfilename):
        print('Downloading: ' + newfilename)
        wget(url_dl,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)


										

  Changelog 


Changelog software url : https://inkscape.org/release

No changelog
  manifest.sha256 
[["Inkscape-1.0.1.dmg","52597712673dedf56d2c084e26d906fd376a382a792d1ac2315a9de697a66dd6"],["setup.py","f4fe326809f42ef01448739ce9d39af2ab0c40f5fa1f5546bbfcea7a0d829ff3"],["WAPT/icon.png","a5be046d87b6cd6a121eabb28634bcdd90dbef15495eb163df8ef00c5188caa9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","64a30e9f4605ab4a43ec246cf1e0cefa64de8675261e048712ac11330fca541d"]]