tis-gimp 2.10.0-14

  • package : tis-gimp
  • version : 2.10.0-14
  • description : Outil de retouche graphique Gimp
  • maintainer : Simon Fonteneau
  • date : 2018-05-14 19:09:48

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *

uninstallkey=[]

def install():

    versionpaquet = control['version'].split('-',1)[0]
    for exe in glob.glob('*.exe'):
        install_exe_if_needed(exe,silentflags='/VERYSILENT',key='GIMP-2_is1',min_version=versionpaquet,killbefore=['gimp.exe'])


def update_package():
    import urlparse

    htmlSource = wgets("https://www.gimp.org/downloads/").splitlines()
    for line in htmlSource:
        if '.exe' in line :
            if not 'help' in line :
                if not 'torrent' in line :
                    urlgimp = 'https://download.gimp.org/mirror/pub/gimp/' + line[line.find("/gimp/") + 6 : line.find('" title') ]
                    filenamegimp = urlparse.unquote(urlgimp.rsplit('/',1)[1])
                    break


    vers = filenamegimp.split('-')[1]

    print 'Last Version = ' + vers

    allexe = glob.glob('*.exe')
    for exe in allexe:
        if exe != filenamegimp :
            remove_file(exe)

    if not isfile(filenamegimp):
        wget(urlgimp,filenamegimp)


    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()
    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "b97cf66ab169d89c69099515054f15242073faa88971060f8b5013c958421964"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "3824006a38918a179ecd0f15962b870f0a13e70e5f97c1c3f829a97f0e0da5df"], ["gimp-2.10.0-setup-1.exe", "76819fad10db52844bcf3d1f6a5cfbf1671b3eff783e63149af7218c8d191bf5"], ["setup.py", "55fa1b0d178fd2bff872d2bab3f07fe0cc37a161028674265e9c34af702262df"], ["WAPT/control", "ce817d15d76242e66842d51f905740a0bf8818b8b170248a9969a518de4b6b06"]]