2 # -*- coding: utf-8 -*-
\r
3 ## This program is free software; you can redistribute it and/or modify
\r
4 ## it under the terms of the GNU General Public License as published
\r
5 ## by the Free Software Foundation; version 2 only.
\r
7 ## This program is distributed in the hope that it will be useful,
\r
8 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
10 ## GNU General Public License for more details.
\r
14 if __name__ == "__main__":
\r
16 os.chdir(os.path.dirname(sys.argv[0]))
\r
20 p=py2deb.Py2deb("nqaap") #This is the package name and MUST be in
\r
21 #lowercase! (using e.g. "mClock" fails
\r
23 p.description="Very simple Audiobook player. \nSupports playing, pausing, seeking (sort of) and saving state when changing book/closing.\nPlays books arranged as dirs under myDocs/Audiobooks"
\r
24 p.author="Soeren 'Pengman' Pedersen"
\r
25 p.mail="pengmeister@gmail.com"
\r
26 p.depends = "python2.5, python2.5-gtk2, python2.5-dbus, python2.5-telepathy, python2.5-gobject, python-gst0.10"
\r
27 p.section="user/multimedia"
\r
28 p.icon = "/usr/share/icons/hicolor/48x48/hildon/nqaap.png"
\r
29 p.arch="all" #should be all for python, any for all arch
\r
30 p.urgency="low" #not used in maemo onl for deb os
\r
31 p.distribution="fremantle"
\r
32 p.repository="extras-devel"
\r
33 p.xsbc_bugtracker="http://talk.maemo.org/showthread.php?p=619738"
\r
34 # p.postinstall="""#!/bin/sh
\r
35 # chmod +x /usr/bin/mclock.py""" #Set here your post install script
\r
36 # p.postremove="""#!/bin/sh
\r
37 # chmod +x /usr/bin/mclock.py""" #Set here your post remove script
\r
38 # p.preinstall="""#!/bin/sh
\r
39 # chmod +x /usr/bin/mclock.py""" #Set here your pre install script
\r
40 # p.preremove="""#!/bin/sh
\r
41 # chmod +x /usr/bin/mclock.py""" #Set here your pre remove script
\r
42 version = "0.8.0" #Version of your software, e.g. "1.2.0" or "0.8.2"
\r
43 build = "2" #Build number, e.g. "1" for the first build of this
\r
44 #version of your software. Increment
\r
45 #for later re-builds of the same
\r
46 #version of your software. Text with
\r
47 #changelog information to be displayed
\r
48 #in the package "Details" tab of the
\r
49 #Maemo Application Manager
\r
50 changeloginformation = "Merged changes from EPage (proper changelog later)\nNew Icon by Strutten."
\r
51 # 0.7.2 : Seek bar now responds to clicks (rather than drags)\nFixed bug with wrong text showing on button after changed chapter.
\r
52 # 0.7.1 : Fixed crash when current points to non existing book
\r
53 # 0.7.0 : Now ignores pressed outside the chapter selection menu\nAdded help
\r
54 # 0.6.1 : Fixed bug that prevented running on devices without Audiobook folder.
\r
55 # Added tip on where to place audiobooks.
\r
56 # 0.6.0 : Now also plays .mp3 files
\r
57 # 0.5.0 : Second release. Now shows which chapter is playing, and scrolls to it when changing.
\r
58 # 0.4.9 : First release. Now it should work
\r
60 dir_name = "src" #Name of the subfolder containing your package
\r
62 #(e.g. usr\share\icons\hicolor\scalable\myappicon.svg,
\r
63 #usr\lib\myapp\somelib.py). We suggest
\r
64 #to leave it named src in all projects
\r
65 #and will refer to that in the wiki
\r
66 #article on maemo.org
\r
68 #Thanks to DareTheHair from talk.maemo.org for this snippet that
\r
69 #recursively builds the file list
\r
70 for root, dirs, files in os.walk(dir_name):
\r
71 real_dir = root[len(dir_name):]
\r
73 continue # if some part of the dirname contains '.' we
\r
74 # ignore all files (avoid .svn
\r
78 fake_file.append(root + os.sep + f + "|" + f)
\r
79 if len(fake_file) > 0:
\r
80 p[real_dir] = fake_file
\r
82 r = p.generate(version,build,changelog=changeloginformation,tar=True,dsc=True,changes=True,build=False,src=True)
\r