X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=support%2Fbuilddeb.py;h=6234f03746f01e0b263cdccb752b5955d19852a2;hb=8679b5e1510e859b696e6400731b0ba957dbdf4c;hp=3a2f7931b583c4c88b6719d733faf6cd8893f1bf;hpb=95a7f33eee9a55cafe60f739a29f4a2caf212721;p=quicknote diff --git a/support/builddeb.py b/support/builddeb.py index 3a2f793..6234f03 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -12,12 +12,15 @@ import constants __appname__ = constants.__app_name__ -__description__ = "Simple note taking application in a similar vein as PalmOS Memos" +__description__ = """Simple note taking application in a similar vein as PalmOS Memos +. +Homepage: http://quicknote.garage.maemo.org/ +""" __author__ = "Christoph Wurstle" __email__ = "n800@axique.net" __version__ = constants.__version__ -__build__ = 0 -__changelog__ = ''' +__build__ = constants.__build__ +__changelog__ = """ 0.7.8 * Spell checking * Fixing the application title @@ -48,14 +51,14 @@ __changelog__ = ''' 0.7.0 * Initial Release. -''' +""" -__postinstall__ = '''#!/bin/sh -e +__postinstall__ = """#!/bin/sh -e gtk-update-icon-cache -f /usr/share/icons/hicolor -exit 0 -''' +rm -f ~/.quicknote/quicknote.log +""" def find_files(path, root): @@ -86,23 +89,48 @@ def build_package(distribution): except: pass + py2deb.Py2deb.SECTIONS = py2deb.SECTIONS_BY_POLICY[distribution] p = py2deb.Py2deb(__appname__) + p.prettyName = constants.__pretty_app_name__ p.description = __description__ + p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=ejpi" + p.upgradeDescription = __changelog__.split("\n\n", 1)[0] p.author = __author__ p.mail = __email__ p.license = "lgpl" - p.depends = { - "diablo": "python2.5, python2.5-gtk2", - "mer": "python2.6, python-gtk2", + p.depends = ", ".join([ + "python2.6 | python2.5", + "python-gtk2 | python2.5-gtk2", + "python-xml | python2.5-xml", + ]) + maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon" + p.depends += { + "debian": ", python-glade2", + "chinook": maemoSpecificDepends, + "diablo": maemoSpecificDepends, + "fremantle": maemoSpecificDepends + ", python-glade2", + "mer": maemoSpecificDepends + ", python-glade2", + }[distribution] + p.section = { + "debian": "accessories", + "chinook": "accessories", + "diablo": "user/office", + "fremantle": "user/office", + "mer": "user/office", }[distribution] - p.section = "user/other" p.arch = "all" p.urgency = "low" - p.distribution = "chinook diablo fremantle mer" + p.distribution = "chinook diablo fremantle mer debian" p.repository = "extras" p.changelog = __changelog__ p.postinstall = __postinstall__ - p.icon = "26x26-quicknote.png" + p.icon = { + "debian": "26x26-quicknote.png", + "chinook": "26x26-quicknote.png", + "diablo": "26x26-quicknote.png", + "fremantle": "64x64-quicknote.png", # Fremantle natively uses 48x48 + "mer": "64x64-quicknote.png", + }[distribution] p["/usr/bin"] = [ "quicknote.py" ] for relPath, files in unflatten_files(find_files(".", "locale")).iteritems(): fullPath = "/usr/share/locale" @@ -121,7 +149,7 @@ def build_package(distribution): for (oldName, newName) in files ) p["/usr/share/applications/hildon"] = ["quicknote.desktop"] - p["/usr/share/dbus-1/services"] = ["quicknote.service"] + #p["/usr/share/dbus-1/services"] = ["quicknote.service"] p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"] p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"] p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"] @@ -129,8 +157,12 @@ def build_package(distribution): print p print p.generate( - __version__, __build__, changelog=__changelog__, - tar=True, dsc=True, changes=True, build=False, src=True + version="%s-%s" % (__version__, __build__), + changelog=__changelog__, + build=False, + tar=True, + changes=True, + dsc=True, ) print "Building for %s finished" % distribution