8 import fake_py2deb as py2deb
11 __appname__ = "quicknote"
12 __description__ = "Simple note taking application in a similar vein as PalmOS Memos"
13 __author__ = "Christoph Wurstle"
14 __email__ = "n800@axique.net"
19 * Slight modification to note history dialog to make each note more distinguishable
20 * On zoom, also hiding the history status and button
35 * improved sync, fixed a small bug
45 __postinstall__ = '''#!/bin/sh -e
47 gtk-update-icon-cache -f /usr/share/icons/hicolor
52 def find_files(path, root):
54 for unusedRoot, dirs, files in os.walk(path):
56 if file.startswith(root+"-"):
57 print "\t", root, file
58 fileParts = file.split("-")
59 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
61 relPath = os.sep.join(relPathParts)
62 yield relPath, file, newName
65 def unflatten_files(files):
67 for relPath, oldName, newName in files:
70 d[relPath].append((oldName, newName))
74 if __name__ == "__main__":
76 os.chdir(os.path.dirname(sys.argv[0]))
80 p = py2deb.Py2deb(__appname__)
81 p.description = __description__
85 p.depends = "python2.5, python2.5-gtk2"
86 p.section = "user/other"
89 p.distribution = "chinook diablo"
90 p.repository = "extras-devel"
91 p.changelog = __changelog__
92 p.postinstall = __postinstall__
93 p.icon = "26x26-quicknote.png"
94 p["/usr/bin"] = [ "quicknote.py" ]
95 for relPath, files in unflatten_files(find_files(".", "locale")).iteritems():
96 fullPath = "/usr/share/locale"
98 fullPath += os.sep+relPath
100 "|".join((oldName, newName))
101 for (oldName, newName) in files
103 for relPath, files in unflatten_files(find_files(".", "src")).iteritems():
104 fullPath = "/usr/lib/quicknote"
106 fullPath += os.sep+relPath
108 "|".join((oldName, newName))
109 for (oldName, newName) in files
111 p["/usr/share/applications/hildon"] = ["quicknote.desktop"]
112 p["/usr/share/dbus-1/services"] = ["quicknote.service"]
113 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"]
114 p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"]
115 p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"]
116 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-quicknote.png|quicknote.png"]
120 __version__, __build__, changelog=__changelog__,
121 tar=True, dsc=True, changes=True, build=False, src=True