9 import fake_py2deb as py2deb
13 __appname__ = constants.__app_name__
14 __description__ = "Simple note taking application in a similar vein as PalmOS Memos"
15 __author__ = "Christoph Wurstle"
16 __email__ = "n800@axique.net"
17 __version__ = constants.__version__
21 * Slight modifications to the note history and SQL dialogs
22 * On zoom, also hiding the history status and button
23 * Touched up the note list, making it ellipsize at the end rather than scroll
24 * Storing of zoom, wordwrap, and fullscreen settings
39 * improved sync, fixed a small bug
49 __postinstall__ = '''#!/bin/sh -e
51 gtk-update-icon-cache -f /usr/share/icons/hicolor
56 def find_files(path, root):
58 for unusedRoot, dirs, files in os.walk(path):
60 if file.startswith(root+"-"):
61 print "\t", root, file
62 fileParts = file.split("-")
63 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
65 relPath = os.sep.join(relPathParts)
66 yield relPath, file, newName
69 def unflatten_files(files):
71 for relPath, oldName, newName in files:
74 d[relPath].append((oldName, newName))
78 if __name__ == "__main__":
80 os.chdir(os.path.dirname(sys.argv[0]))
84 p = py2deb.Py2deb(__appname__)
85 p.description = __description__
89 p.depends = "python2.5, python2.5-gtk2"
90 p.section = "user/other"
93 p.distribution = "chinook diablo"
94 p.repository = "extras"
95 p.changelog = __changelog__
96 p.postinstall = __postinstall__
97 p.icon = "26x26-quicknote.png"
98 p["/usr/bin"] = [ "quicknote.py" ]
99 for relPath, files in unflatten_files(find_files(".", "locale")).iteritems():
100 fullPath = "/usr/share/locale"
102 fullPath += os.sep+relPath
104 "|".join((oldName, newName))
105 for (oldName, newName) in files
107 for relPath, files in unflatten_files(find_files(".", "src")).iteritems():
108 fullPath = "/usr/lib/quicknote"
110 fullPath += os.sep+relPath
112 "|".join((oldName, newName))
113 for (oldName, newName) in files
115 p["/usr/share/applications/hildon"] = ["quicknote.desktop"]
116 p["/usr/share/dbus-1/services"] = ["quicknote.service"]
117 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"]
118 p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"]
119 p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"]
120 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-quicknote.png|quicknote.png"]
124 __version__, __build__, changelog=__changelog__,
125 tar=True, dsc=True, changes=True, build=False, src=True