X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=support%2Fbuilddeb.py;h=36f8c79ed86a7186b56d033624e3c45c925bc9cc;hb=0e6232290e79538b22b9744f6c6e3e6dd3792a87;hp=04fd6e24286ebb11ea022b530290f41082daef52;hpb=c6654b4c289b2b3e05795cff8e4accc3a32b8bca;p=gc-dialer diff --git a/support/builddeb.py b/support/builddeb.py index 04fd6e2..36f8c79 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -12,27 +12,39 @@ import constants __appname__ = constants.__app_name__ -__description__ = """REPLACEME -REPLACEME +__description__ = """Touch screen enhanced interface to the GoogleVoice phone service +Features: . -Homepage: +* Dialpad for quick call +. +* Checking voicemails, texts, call history +. +* Sending texts +. +* Notification support for texts, voicemail, and/or missed calls +. +Homepage: http://gc-dialer.garage.maemo.org/ """ __author__ = "Ed Page" __email__ = "eopage@byu.net" __version__ = constants.__version__ __build__ = constants.__build__ __changelog__ = """ -REPLACEME -""" +* Fixing notifications on Maemo 4.1 (put in error reporting mechanism half-way) +* Fixing up various issues with clearing one's account information +""".strip() __postinstall__ = """#!/bin/sh -e gtk-update-icon-cache -f /usr/share/icons/hicolor -rm -f ~/.REPLACEME/REPLACEME.log -""" +rm -f ~/.%(name)s/%(name)s.log +rm -f ~/.%(name)s/notifier.log +""" % {"name": constants.__app_name__} __preremove__ = """#!/bin/sh -e + +python /opt/dialcentral/lib/alarm_handler.py -d || true """ @@ -66,28 +78,25 @@ def build_package(distribution): p = py2deb.Py2deb(__appname__) p.prettyName = constants.__pretty_app_name__ p.description = __description__ - p.bugTracker = "REPLACEME" + p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=Dialcentral" p.author = __author__ p.mail = __email__ 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([ ]) p.section = { - "debian": "REPLACEME", - "diablo": "user/REPLACEME", - "fremantle": "user/REPLACEME", + "debian": "comm", + "diablo": "user/network", + "fremantle": "user/network", }[distribution] p.arch = "all" p.urgency = "low" @@ -97,26 +106,34 @@ def build_package(distribution): p.postinstall = __postinstall__ p.preremove = __preremove__ p.icon = { - "debian": "REPLACEME", - "diablo": "REPLACEME", - "fremantle": "REPLACEME", # Fremantle natively uses 48x48 + "debian": "26x26-dialcentral.png", + "diablo": "26x26-dialcentral.png", + "fremantle": "64x64-dialcentral.png", # Fremantle natively uses 48x48 }[distribution] - p["/opt/REPLACEME/bin"] = [ "REPLACEME" ] + p["/opt/%s/bin" % __appname__] = [ "%s.py" % __appname__ ] for relPath, files in unflatten_files(find_files("src", ".")).iteritems(): - fullPath = "/opt/REPLACEME/lib" + fullPath = "/opt/%s/lib" % __appname__ + if relPath: + fullPath += os.sep+relPath + p[fullPath] = list( + "|".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"] = ["REPLACEME.desktop"] - p["/usr/share/icons/hicolor/26x26/hildon"] = ["REPLACEME"] - p["/usr/share/icons/hicolor/64x64/hildon"] = ["REPLACEME"] - p["/usr/share/icons/hicolor/scalable/hildon"] = ["REPLACEME"] + 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__, @@ -125,9 +142,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__, @@ -136,20 +151,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)