Polishing things up
[ejpi] / support / builddeb.py
index 04fd6e2..89991bd 100755 (executable)
@@ -12,25 +12,30 @@ import constants
 
 
 __appname__ = constants.__app_name__
-__description__ = """REPLACEME
-REPLACEME
+__description__ = """A Touch Screen Optimized RPN Calculator using Pie Menus
 .
-Homepage:
+RPN: Stack based math, come on it is fun
+.
+Pie Menus: Press them or press-drag them
+.
+History: Its such a drag, so drag them around, delete them, etc
+.
+Homepage: http://ejpi.garage.maemo.org/
 """
 __author__ = "Ed Page"
 __email__ = "eopage@byu.net"
 __version__ = constants.__version__
 __build__ = constants.__build__
 __changelog__ = """
-REPLACEME
-"""
+* Port to Qt wtih misc fixes
+""".strip()
 
 
 __postinstall__ = """#!/bin/sh -e
 
 gtk-update-icon-cache -f /usr/share/icons/hicolor
-rm -f ~/.REPLACEME/REPLACEME.log
-"""
+rm -f ~/.%(name)s/%(name)s.log
+""" % {"name": constants.__app_name__}
 
 __preremove__ = """#!/bin/sh -e
 """
@@ -66,7 +71,7 @@ def build_package(distribution):
        p = py2deb.Py2deb(__appname__)
        p.prettyName = constants.__pretty_app_name__
        p.description = __description__
-       p.bugTracker = "REPLACEME"
+       p.bugTracker = "https://bugs.maemo.org/enter_bug.cgi?product=ejpi"
        p.author = __author__
        p.mail = __email__
        p.license = "lgpl"
@@ -79,15 +84,13 @@ def build_package(distribution):
        maemoSpecificDepends = ", python-osso | python2.5-osso, python-hildon | python2.5-hildon"
        p.depends += {
                "debian": ", python-glade2",
-               "diablo": maemoSpecificDepends + ", python2.5-conic",
-               "fremantle": maemoSpecificDepends + ", python-glade2, python-alarm",
+               "diablo": maemoSpecificDepends,
+               "fremantle": maemoSpecificDepends + ", python-glade2",
        }[distribution]
-       p.recommends = ", ".join([
-       ])
        p.section = {
-               "debian": "REPLACEME",
-               "diablo": "user/REPLACEME",
-               "fremantle": "user/REPLACEME",
+               "debian": "math",
+               "diablo": "user/science",
+               "fremantle": "user/science",
        }[distribution]
        p.arch = "all"
        p.urgency = "low"
@@ -95,25 +98,24 @@ def build_package(distribution):
        p.repository = "extras"
        p.changelog = __changelog__
        p.postinstall = __postinstall__
-       p.preremove = __preremove__
        p.icon = {
-               "debian": "REPLACEME",
-               "diablo": "REPLACEME",
-               "fremantle": "REPLACEME", # Fremantle natively uses 48x48
+               "debian": "26x26-ejpi.png",
+               "diablo": "26x26-ejpi.png",
+               "fremantle": "64x64-ejpi.png", # Fremantle natively uses 48x48
        }[distribution]
-       p["/opt/REPLACEME/bin"] = [ "REPLACEME" ]
+       p["/opt/%s/bin" % constants.__appname__] = [ "%s.py" % constants.__appname__ ]
        for relPath, files in unflatten_files(find_files("src", ".")).iteritems():
-               fullPath = "/opt/REPLACEME/lib"
+               fullPath = "/opt/%s/lib" % constants.__appname__
                if relPath:
                        fullPath += os.sep+relPath
                p[fullPath] = list(
                        "|".join((oldName, newName))
                        for (oldName, newName) in files
                )
-       p["/usr/share/applications/hildon"] = ["REPLACEME.desktop"]
-       p["/usr/share/icons/hicolor/26x26/hildon"] = ["REPLACEME"]
-       p["/usr/share/icons/hicolor/64x64/hildon"] = ["REPLACEME"]
-       p["/usr/share/icons/hicolor/scalable/hildon"] = ["REPLACEME"]
+       p["/usr/share/applications/hildon"] = ["%s.desktop" % constants.__appname__]
+       p["/usr/share/icons/hicolor/26x26/hildon"] = ["26x26-ejpi.png|ejpi.png"]
+       p["/usr/share/icons/hicolor/64x64/hildon"] = ["64x64-ejpi.png|ejpi.png"]
+       p["/usr/share/icons/hicolor/scalable/hildon"] = ["scale-ejpi.png|ejpi.png"]
 
        if distribution == "debian":
                print p