
FreePascal
Paquet d’installation silencieuse pour FreePascal
3.2.0-1
- package: tis-free-pascal
- name: FreePascal
- version: 3.2.0-1
- maintainer: Jordan ARNAUD
- licence: https://wiki.lazarus.freepascal.org/licensing
- target_os: debian_based
- architecture: x64
- signature_date:
- size: 82.76 Mo
- homepage : https://www.freepascal.org/
package : tis-free-pascal
version : 3.2.0-1
architecture : x64
section : base
priority : optional
name : FreePascal
categories :
maintainer : Jordan ARNAUD
description : Free Pascal is a mature, versatile, open source Pascal compiler. It can target many processor architectures
depends :
conflicts :
maturity : PROD
locale :
target_os : debian_based
min_wapt_version : 2.3
sources : https://sourceforge.net/projects/freepascal/
installed_size :
impacted_process :
description_fr : Free Pascal est un compilateur Pascal mature, polyvalent et open source. Il peut cibler de nombreuses architectures de processeurs
description_pl : Free Pascal to dojrzały, wszechstronny kompilator Pascala o otwartym kodzie źródłowym. Może on działać na wielu architekturach procesorów
description_de : Free Pascal ist ein ausgereifter, vielseitiger, quelloffener Pascal-Compiler. Er kann für viele Prozessorarchitekturen eingesetzt werden
description_es : Free Pascal es un compilador Pascal maduro, versátil y de código abierto. Puede utilizarse con muchas arquitecturas de procesador
description_pt : O Free Pascal é um compilador Pascal maduro, versátil e de código aberto. Pode ser utilizado em muitas arquitecturas de processadores
description_it : Free Pascal è un compilatore Pascal maturo, versatile e open source. Può essere indirizzato a molte architetture di processori
description_nl : Free Pascal is een volwassen, veelzijdige, open source Pascal compiler. Het kan zich richten op veel processorarchitecturen
description_ru : Free Pascal - это зрелый, универсальный компилятор Паскаля с открытым исходным кодом. Он может работать со многими процессорными архитектурами
audit_schedule :
editor :
keywords :
licence : https://wiki.lazarus.freepascal.org/licensing
homepage : https://www.freepascal.org/
package_uuid : 2a4c7ac8-34f7-4d6e-aba3-448c9dba033d
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 4a6a7a590a670b402cbd57dd6dfff19628b8a0fa5d2fd28ea6d7feacc817f137
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2024-09-11T11:03: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 : cTtgOHBKX0wjAHiKiYeZtnsmwENY5uBKURuah4UqVA2oa8q0W5P8Hx1CUjyqaK1lakwVz+K/9wItWNjQj4bt8r7FhtteKi0hGuvOFOE2ccRuW0qXZndOdDAyNXkciO8Ut3PoGlmhxTR5o0gi3HAXyp1h4fEEbJ1GYe3JMup9l9IeMTsAwrgM3v48yzRIQpJAKf9iF3WivO6S+elBqANOwR+zaIjFDVnx2ZAitD66tsyOoN7pl20DJZdQ6zEiwG4Yh+6DMpqbg7ND7lC/Rui490cqVe3d1mpL/zAE+WEFUXHNVfR57mlCntnJTSOXz8f8CJl6mbyTSrykG+V5KWmrQw==
# -*- coding: utf-8 -*-
from setuphelpers import *
# -*- coding: utf-8 -*-
from setuphelpers import *
bin_path = makepath("/", "usr", "local", "bin")
app_path = "/opt/free_pascal"
def install():
# Extraction and copying to /opt/free_pascal
extract_path = glob.glob("*.tar")[0]
run(f"tar -xvf {extract_path}")
char_len = len(extract_path) - len('.tar')
extract_path = extract_path[:char_len]
bin_name = glob.glob(extract_path)[0]
print(f"copying free_pascal to {app_path}")
if not isdir(app_path):
mkdirs(app_path)
copytree2(bin_name, app_path)
# Creation of symlink
if not isfile(f"{bin_path}/free_pascal"):
print("create free_pascal alias in path")
os.symlink(f"{app_path}/free_pascal", f"{bin_path}/free_pascal")
if isdir(extract_path):
remove_tree(extract_path)
def uninstall():
# Removing of symlink
if isfile(f"{bin_path}/free_pascal"):
remove_file(f"{bin_path}/free_pascal")
# Removing of the software
if isdir(app_path):
remove_tree(app_path)
# -*- coding: utf-8 -*-
from setuphelpers import *
def update_package():
# Declaring local variables
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
api_url = "https://sourceforge.net/projects/freepascal/best_release.json"
update_dict = {
# "bin_contains": {
# "x64": "-x64-svn-",
# "arm64": "-ARM64-svn-",
# "x86": "-win32-svn-",
# },
"latest_bin_to_substitute": {
"x64": ".tar",
},
}
# Getting latest version information from official sources
print("API used is: %s" % api_url)
json_load = wgets(api_url, proxies=proxies, as_json=True)
for to_download in json_load["platform_releases"]:
if "-x86_64-linux" in json_load['platform_releases']['linux']['filename']:
latest_bin = json_load["platform_releases"]['linux']["filename"].split("/")[-1]
download_url = json_load["platform_releases"]['linux']["url"].replace("http://", "https://")
version = json_load["platform_releases"]['linux']["filename"].split("-")[1].split(".intel")[0]
break
# Deleting outdated binaries
remove_outdated_binaries(latest_bin)
# Downloading latest binaries
print("Latest %s version is: %s" % (control.name, version))
print("Download URL is: %s" % download_url)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
else:
print("Binary is present: %s" % latest_bin)
# Changing version of the package
if Version(version, 4) > Version(control.get_software_version(), 4):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
package_updated = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.set_software_version(version)
control.save_control_to_wapt()
# Validating update-package-sources
return package_updated
# # Changing version of the package and validating update-package-sources
# return complete_control_version(control, version)
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
da26e3eebc82d5bd1e8750064b4c63e1632bf62600a740c94d6036b4d1f08472 : WAPT/control
4a6a7a590a670b402cbd57dd6dfff19628b8a0fa5d2fd28ea6d7feacc817f137 : WAPT/icon.png
d19252e6cfe52f1217f4822a548ee699eaa7e044807aaf8429a0532cb7e4cb3d : fpc-3.2.0-x86_64-linux.tar
fea4bfc058a3c3d46bb296f9a5afb36df9d66c1380efd54b6bc2b6899ce307e7 : luti.json
dd2cce7957c4a87194403c649c00be9da68bef9b417509ed10246984ade49927 : setup.py
3817670d331b8b28efcb287dee81a255a9a908f3527cad0805d49854b7e67ecc : update_package.py