tis-pidgin
2.14.1-1
Instant Messaging for Jabber, AIM, Sametime, XMPP, GTK libraries and Rocket.chat plugin
6125 downloads

Description
- package : tis-pidgin
- version : 2.14.1-1
- architecture : all
- categories :
- maintainer : Simon Fonteneau
- description : Instant Messaging for Jabber, AIM, Sametime, XMPP, GTK libraries and Rocket.chat plugin
- locale :
- target_os :
- min_wapt_version :
- sources :
- installed_size :
- impacted_process : pidgin.exe
- description_fr : Messagerie instantanee pour Jabber, AIM, Sametime, XMPP, inclus les librairies GTK et le plugin Rocket.chat
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor :
- licence :
- signature_date : 2020-06-15T11:53:49.220000
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing Pidgin')
versionsoft = control['version'].split('-',1)[0]
install_exe_if_needed('pidgin-%s-offline.exe' % versionsoft,'/S','Pidgin',versionsoft,'pidgin.exe')
def update_package():
proxies = {}
if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxies = {'http':proxywapt,'https':proxywapt}
import re,requests,urlparse,glob
url = requests.head('https://sourceforge.net/projects/pidgin/files/latest/download?source=typ_redirect',proxies=proxies).headers['Location']
dst = requests.head(url,proxies=proxies).headers['Location']
dstexe = dst.replace('-dbgsym.zip','-offline.exe')
filename = urlparse.unquote(dstexe.rsplit('/',1)[1])
exes = glob.glob('*.exe')
for fn in exes:
if fn != filename:
remove_file(fn)
if not isfile(filename):
print('Downloading %s from %s'%(filename,dstexe))
wget(dstexe,filename,proxies=proxies)
else:
print('Already up to date, skipped')
vers = get_file_properties(filename)['ProductVersion']
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())