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 modifications to the note history and SQL dialogs
20 * On zoom, also hiding the history status and button
21 * Touched up the note list, making it ellipsize at the end rather than scroll
36 * improved sync, fixed a small bug
46 __postinstall__ = '''#!/bin/sh -e
48 gtk-update-icon-cache -f /usr/share/icons/hicolor
53 def find_files(path, root):
55 for unusedRoot, dirs, files in os.walk(path):
57 if file.startswith(root+"-"):
58 print "\t", root, file
59 fileParts = file.split("-")
60 unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1]
62 relPath = os.sep.join(relPathParts)
63 yield relPath, file, newName
66 def unflatten_files(files):
68 for relPath, oldName, newName in files:
71 d[relPath].append((oldName, newName))
75 if __name__ == "__main__":
77 os.chdir(os.path.dirname(sys.argv[0]))
81 p = py2deb.Py2deb(__appname__)
82 p.description = __description__
86 p.depends = "python2.5, python2.5-gtk2"
87 p.section = "user/other"
90 p.distribution = "chinook diablo"
91 p.repository = "extras-devel"
92 p.changelog = __changelog__
93 p.postinstall = __postinstall__
94 p.icon = "26x26-quicknote.png"
95 p["/usr/bin"] = [ "quicknote.py" ]
96 for relPath, files in unflatten_files(find_files(".", "locale")).iteritems():
97 fullPath = "/usr/share/locale"
99 fullPath += os.sep+relPath
101 "|".join((oldName, newName))
102 for (oldName, newName) in files
104 for relPath, files in unflatten_files(find_files(".", "src")).iteritems():
105 fullPath = "/usr/lib/quicknote"
107 fullPath += os.sep+relPath
109 "|".join((oldName, newName))
110 for (oldName, newName) in files
112 p["/usr/share/applications/hildon"] = ["quicknote.desktop"]
113 p["/usr/share/dbus-1/services"] = ["quicknote.service"]
114 p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-quicknote.png|quicknote.png"]
115 p["/usr/share/icons/hicolor/40x40/hildon"] = ["40x40-quicknote.png|quicknote.png"]
116 p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-quicknote.png|quicknote.png"]
117 p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-quicknote.png|quicknote.png"]
121 __version__, __build__, changelog=__changelog__,
122 tar=True, dsc=True, changes=True, build=False, src=True