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
34 * improved sync, fixed a small bug
44 __postinstall__ = '''#!/bin/sh -e
46 gtk-update-icon-cache -f /usr/share/icons/hicolor
51 def find_files(path, root):
53 for unusedRoot, dirs, files in os.walk(path):
55 if file.startswith(root+"-"):
56 print "\t", root, file
57 fileParts = file.split("-")
58 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
60 relPath = os.sep.join(relPathParts)
61 yield relPath, file, newName
64 def unflatten_files(files):
66 for relPath, oldName, newName in files:
69 d[relPath].append((oldName, newName))
73 if __name__ == "__main__":
75 os.chdir(os.path.dirname(sys.argv[0]))
79 p = py2deb.Py2deb(__appname__)
80 p.description = __description__
84 p.depends = "python2.5, python2.5-gtk2"
85 p.section = "user/other"
88 p.distribution = "chinook diablo"
89 p.repository = "extras-devel"
90 p.changelog = __changelog__
91 p.postinstall = __postinstall__
92 p.icon = "26x26-quicknote.png"
93 p["/usr/bin"] = [ "quicknote.py" ]
94 for relPath, files in unflatten_files(find_files(".", "locale")).iteritems():
95 fullPath = "/usr/share/locale"
97 fullPath += os.sep+relPath
99 "|".join((oldName, newName))
100 for (oldName, newName) in files
102 for relPath, files in unflatten_files(find_files(".", "src")).iteritems():
103 fullPath = "/usr/lib/quicknote"
105 fullPath += os.sep+relPath
107 "|".join((oldName, newName))
108 for (oldName, newName) in files
110 p["/usr/share/applications/hildon"] = ["quicknote.desktop"]
111 p["/usr/share/dbus-1/services"] = ["quicknote.service"]
112 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"]
113 p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"]
114 p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"]
115 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-quicknote.png|quicknote.png"]
119 __version__, __build__, changelog=__changelog__,
120 tar=True, dsc=True, changes=True, build=False, src=True