tis-llvm icon

llvm

Paquet d’installation silencieuse pour llvm

20.1.4-2

  • package: tis-llvm
  • name: llvm
  • version: 20.1.4-2
  • maintainer: Amel FRADJ
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 385.77 Mo

package           : tis-llvm
version           : 20.1.4-2
architecture      : x64
section           : base
priority          : optional
name              : llvm
categories        : 
maintainer        : Amel FRADJ
description       : The LLVM Project is a collection of modular and reusable compiler and toolchain technologies
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Le projet LLVM est un ensemble de technologies modulaires et réutilisables de compilateurs et de chaînes d'outils
description_pl    : Projekt LLVM jest zbiorem modułowych kompilatorów wielokrotnego użytku i technologii toolchain
description_de    : Das LLVM-Projekt ist eine Sammlung von modularen und wiederverwendbaren Compiler- und Toolchain-Technologien
description_es    : El proyecto LLVM es una colección de tecnologías de compiladores y cadenas de herramientas modulares y reutilizables
description_pt    : O Projeto LLVM é uma coleção de tecnologias modulares e reutilizáveis de compiladores e cadeias de ferramentas
description_it    : Il progetto LLVM è una raccolta di tecnologie modulari e riutilizzabili per compilatori e toolchain
description_nl    : Het LLVM Project is een verzameling van modulaire en herbruikbare compiler- en toolchaintechnologieën
description_ru    : Проект LLVM - это коллекция модульных и многократно используемых технологий компиляторов и инструментальных цепочек
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 170bd5b8-d1a2-4cea-95f8-ce9efaece430
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 4acf467171987fbdd8bd05eef15fd2a5f395de21078c7dd7375354f64e93ebf2
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-05-11T12:14:06.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         : ce3jhGP+XyxORNnAeR+6E8O16YhKHpnZ1Y1BJflgsFnhf7Q4Hs0e6Yiaxm0uQOqW4IPJLmZ5qiClLIdpgY2QsJvxA9E+Hp9wOx3elDWbHrOfLhsp4KmKkDbbMZvVeIWH2KGfvz4jqpCfuUl+LA73BAPWQ4j6kE4LhrCXBLvaCiz7as32xxpqJOhfntiyuQ/XZfO927mJlVj8OJ452fZayxY13jqahyVqX4+yhGMde8aemYL7TngHvdiK3+tUEAH/XJPv8NMlJ+yjBO+hBn71ISmGkeTfMvjP5ndHHgJSX7HvlRHE1XG9JSidXjwcvI1p+ehKL1GVlbx4e3vgfRonpQ==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
{
   "key":"LLVM",
   "name":"LLVM",
   "version":"18.1.6",
   "install_date":"",
   "install_location":"",
   "uninstall_string":"C:\\Program Files\\LLVM\\Uninstall.exe",
   "publisher":"LLVM",
   "system_component":0,
   "win64":false
  }

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('LLVM-*-win64.exe')[0]
    
    # Installing the software
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='LLVM',
        min_version=control.get_software_version(),
    )



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



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

    dict_arch = {"x64":"-win64.exe", "x86":"-win32.exe"}    
    url_api = "https://api.github.com/repos/llvm/llvm-project/releases/latest"

    print("API used is: %s" % url_api)
    json_load = wgets(url_api, proxies=proxies, as_json=True)

    for download in json_load["assets"]:
        if dict_arch[control.architecture] in download["name"]:
            download_url = download["browser_download_url"]
            version = json_load["tag_name"].split('-')[-1]
            latest_bin = download["name"]
            latest_bin_extension = latest_bin.rsplit('.', 1)[-1]
            break
    
    # 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

ee6206043ce6b24edbd6ea60645852f833744d9b5898d9c5f7f7684445381a25 : LLVM-20.1.4-win64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
ce641e967cb7aa0f76ab8cf1f14c81739c9a55a7bfae613c45c8bba8a9b364a4 : WAPT/control
4acf467171987fbdd8bd05eef15fd2a5f395de21078c7dd7375354f64e93ebf2 : WAPT/icon.png
06fff647e60f59c4b3ee1e0619887a6a839689e97d98eb1feb11bb03c1729f19 : luti.json
6db40a7aab758ce4f7e05ecf43b3a6e1a6494f5c125ffbb59a7627995d87ebd6 : setup.py
2660e6694cbe936c242beffbb0e01662b49b107d00b21f62f39019994f799098 : update_package.py