diff options
author | Papoteur <papoteur@mageia.org> | 2018-12-20 10:15:00 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2018-12-20 18:57:17 +0100 |
commit | c07d2baf652893549951f7fd0b0d68f38cad56d3 (patch) | |
tree | 7b34293ef4fffc8b4114c676dfe2928310a06e1d /setup.py | |
parent | 48083aeaa0f56718575a5e6dda8de366cfca28cd (diff) | |
download | mageiawelcome-c07d2baf652893549951f7fd0b0d68f38cad56d3.tar mageiawelcome-c07d2baf652893549951f7fd0b0d68f38cad56d3.tar.gz mageiawelcome-c07d2baf652893549951f7fd0b0d68f38cad56d3.tar.bz2 mageiawelcome-c07d2baf652893549951f7fd0b0d68f38cad56d3.tar.xz mageiawelcome-c07d2baf652893549951f7fd0b0d68f38cad56d3.zip |
Complete setup script
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -2,22 +2,27 @@ from distutils.core import setup from distutils.command.build import build import os, glob -LOCALE_DIR= '/usr/share/mageiawelcome/translations' - class BuildQm(build): for po in glob.glob('po/*.po'): - os.system('lconvert {} -o i18n/mageiawelcome_{}.ts'.format(po, os.path.splitext("path_to_file")[0])) + os.system('lconvert {} -o i18n/mageiawelcome_{}.ts'.format(po, os.path.splitext(os.path.basename(po))[0])) for ts in glob.glob('i18n/*.ts'): os.system('lrelease {0} -qm {1}'.format(ts, (ts[:-2]+'qm'))) - os.system("rm -f i18n/*.ps") + os.system("rm -f i18n/*.ts") + os.system('intltool-merge --desktop-style po usr/share/applications/mageiawelcome.desktop.in usr/share/applications/mageiawelcome.desktop') + -data_files = [("share/applications/", ["share/applications/mageiawelcome.desktop"]), - ("share/icons/hicolor/scalable/apps/", ["share/icons/mageiawelcome.svg"]), +data_files = [("bin",["usr/bin/mageiawelcome","usr/bin/mageiawelcome-launcher"]), + ("share/applications/", ["usr/share/applications/mageiawelcome.desktop"]), + ("share/icons/hicolor/scalable/apps/", ["usr/share/icons/scalable/apps/mageiawelcome.svg"]), + ("share/mageiawelcome/",glob.glob('qml/*.py')), + ("share/mageiawelcome/",glob.glob('qml/*.qml')), + ("share/mageiawelcome/img",glob.glob('qml/img/*')), ("share/mageiawelcome/translations/",glob.glob('i18n/*.qm')), + ("etc/xdg/autostart/",["etc/xdg/autostart/mageiawelcome.desktop"]), ] setup( - name = 'mageiasync', + name = 'mageiawelcome', version = '1.90', license = 'GNU General Public License v3 (GPLv3)', url = 'http://gitweb.mageia.org/software/mageiawelcome', |