Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python2.5
- # -*- coding: utf-8 -*-
- ## This program is free software; you can redistribute it and/or modify
- ## it under the terms of the GNU General Public License as published
- ## by the Free Software Foundation; version 2 only.
- ##
- ## This program is distributed in the hope that it will be useful,
- ## but WITHOUT ANY WARRANTY; without even the implied warranty of
- ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ## GNU General Public License for more details.
- ##
- import pypackager
- import os
- if __name__ == "__main__":
- try:
- os.chdir(os.path.dirname(sys.argv[0]))
- except:
- pass
- print
- p=pypackager.pypackager("healthcheck")
- p.display_name='Health Check'
- p.version='0.5.2'
- p.buildversion='4'
- p.description="Health Check, Test both camera's, GPS, LED's, vibration and show System Information. \n Developed for the Nokia N900 & Maemo 5 \n Bugs/Requests - http://talk.maemo.org/showthread.php?t=45453"
- p.author="Greg Roberts"
- p.mail="me@greg-roberts.com"
- p.depends = "python2.5, python2.5-qt4-gui, python2.5-qt4-core, python-dbus, python2.5-gtk2, python-location, gstreamer-tools, pulseaudio-utils"
- p.section="user/utilities"
- p.icon = "/home/user/MyDocs/healthcheck/healthcheck.png"
- p.arch="all" #should be all for python, any for all arch
- p.urgency="low" #not used in maemo onl for deb os
- p.distribution="fremantle"
- p.repository="extras-devel"
- p.bugtracker=="http://talk.maemo.org/showthread.php?t=45453"
- # p.postinstall="""#!/bin/sh
- # chmod +x /usr/bin/mclock.py""" #Set here your post install script
- # p.postremove="""#!/bin/sh
- # chmod +x /usr/bin/mclock.py""" #Set here your post remove script
- # p.preinstall="""#!/bin/sh
- # chmod +x /usr/bin/mclock.py""" #Set here your pre install script
- # p.preremove="""#!/bin/sh
- # chmod +x /usr/bin/mclock.py""" #Set here your pre remove script
- p.changelog = "Added Pulse-Audio Tools - Tests Speakers"
- dir_name = "src" #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org
- #Thanks to DareTheHair from talk.maemo.org for this snippet that recursively builds the file list
- for root, dirs, files in os.walk(dir_name):
- real_dir = root[len(dir_name):]
- fake_file = []
- for f in files:
- fake_file.append(root + os.sep + f + "|" + f)
- if len(fake_file) > 0:
- p[real_dir] = fake_file
- print p.generate(build_binary=False,build_src=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement