X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=support%2Fbuilddeb.py;h=2fa2f2463853b023277eb5110e7a7d7a7940e727;hb=771753b90b46c1ad9587da65f35de0c600570e12;hp=f800cc61f42774ab2ff82af391bd03d7e3edfc4d;hpb=f183dedf1245e76096c1e0000fcc4ed72e64796e;p=gc-dialer diff --git a/support/builddeb.py b/support/builddeb.py index f800cc6..2fa2f24 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -12,7 +12,7 @@ import constants __appname__ = constants.__app_name__ -__description__ = """Touch screen enhanced interface to the GoogleVoice phone service" +__description__ = """Touch screen enhanced interface to the GoogleVoice phone service Features: . * Dialpad for quick call @@ -30,7 +30,7 @@ __email__ = "eopage@byu.net" __version__ = constants.__version__ __build__ = constants.__build__ __changelog__ = """ -* Fix for bug +* Fixing some issues propogating full screen settings to the SMS Entry window """.strip() @@ -83,15 +83,12 @@ def build_package(distribution): p.license = "lgpl" p.depends = ", ".join([ "python2.6 | python2.5", - "python-gtk2 | python2.5-gtk2", - "python-xml | python2.5-xml", - "python-dbus | python2.5-dbus", + "python-simplejson", ]) - maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon" p.depends += { - "debian": ", python-glade2", - "diablo": maemoSpecificDepends + ", python2.5-conic", - "fremantle": maemoSpecificDepends + ", python-glade2, python-alarm", + "debian": ", python-qt4", + "diablo": ", python2.5-qt4-core, python2.5-qt4-gui", + "fremantle": ", python2.5-qt4-core, python2.5-qt4-gui, python2.5-qt4-maemo5", }[distribution] p.recommends = ", ".join([ ]) @@ -121,13 +118,21 @@ def build_package(distribution): "|".join((oldName, newName)) for (oldName, newName) in files ) + for relPath, files in unflatten_files(find_files("data", ".")).iteritems(): + fullPath = "/opt/%s/share" % __appname__ + if relPath: + fullPath += os.sep+relPath + p[fullPath] = list( + "|".join((oldName, newName)) + for (oldName, newName) in files + ) p["/usr/share/applications/hildon"] = ["dialcentral.desktop"] p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-dialcentral.png|dialcentral.png"] p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-dialcentral.png|dialcentral.png"] p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-dialcentral.png|dialcentral.png"] + print p if distribution == "debian": - print p print p.generate( version="%s-%s" % (__version__, __build__), changelog=__changelog__, @@ -136,9 +141,7 @@ def build_package(distribution): changes=False, dsc=False, ) - print "Building for %s finished" % distribution else: - print p print p.generate( version="%s-%s" % (__version__, __build__), changelog=__changelog__, @@ -147,20 +150,12 @@ def build_package(distribution): changes=True, dsc=True, ) - print "Building for %s finished" % distribution + print "Building for %s finished" % distribution if __name__ == "__main__": - if len(sys.argv) > 1: - try: - import optparse - except ImportError: - optparse = None - - if optparse is not None: - parser = optparse.OptionParser() - (commandOptions, commandArgs) = parser.parse_args() + if len(sys.argv) == 1: + distribution = "fremantle" else: - commandArgs = None - commandArgs = ["diablo"] - build_package(commandArgs[0]) + distribution = sys.argv[1] + build_package(distribution)