X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=support%2Fbuilddeb.py;h=fa86426d58d7be514792ebe329422091154b1d74;hb=17888db15a7dedb2d87c37d0d7236c33e33dd34c;hp=4a460f692f7e8006e6f71d0cc56d5540530f8bb0;hpb=c462d7d29571b363410a50f2243910db900ca532;p=watersofshiloah diff --git a/support/builddeb.py b/support/builddeb.py index 4a460f6..fa86426 100755 --- a/support/builddeb.py +++ b/support/builddeb.py @@ -18,13 +18,14 @@ Supports streaming: * Conference precedings and magazines from The Church of Jesus Christ of Latter-day Saints * Scriptures, including King James Version of the Bible and the Book of Mormon . -Homepage: http://www.lds.org +Homepage: """ -__author__ = "The Church of Jesus Christ of Latter-day Saints" -__email__ = "" +__author__ = "Ed Page" +__email__ = "eopage@byu.net" __version__ = constants.__version__ __build__ = constants.__build__ __changelog__ = """ +Initial release """ @@ -34,13 +35,13 @@ gtk-update-icon-cache -f /usr/share/icons/hicolor """ -def find_files(path): +def find_files(prefix, path): for root, dirs, files in os.walk(path): for file in files: - if file.startswith("src-"): + if file.startswith(prefix+"-"): fileParts = file.split("-") unused, relPathParts, newName = fileParts[0], fileParts[1:-1], fileParts[-1] - assert unused == "src" + assert unused == prefix relPath = os.sep.join(relPathParts) yield relPath, file, newName @@ -85,9 +86,9 @@ def build_package(distribution): p.recommends = ", ".join([ ]) p.section = { - "debian": "", - "diablo": "", - "fremantle": "", + "debian": "sound", + "diablo": "user/multimedia", + "fremantle": "user/multimedia", }[distribution] p.arch = "all" p.urgency = "low" @@ -95,24 +96,26 @@ def build_package(distribution): p.repository = "extras" p.changelog = __changelog__ p.postinstall = __postinstall__ - p.icon = { - "debian": "", - "diablo": "", - "fremantle": "", # Fremantle natively uses 48x48 - }[distribution] - p["/usr/bin"] = [ "" ] - for relPath, files in unflatten_files(find_files(".")).iteritems(): - fullPath = "" + p.icon = "48x48-WatersOfShiloah.png" + p["/opt/WatersOfShiloah/bin"] = ["WatersOfShiloah.py"] + for relPath, files in unflatten_files(find_files("src", ".")).iteritems(): + fullPath = "/opt/WatersOfShiloah/lib" + if relPath: + fullPath += os.sep+relPath + p[fullPath] = list( + "|".join((oldName, newName)) + for (oldName, newName) in files + ) + for relPath, files in unflatten_files(find_files("data", ".")).iteritems(): + fullPath = "/opt/WatersOfShiloah/share" if relPath: fullPath += os.sep+relPath p[fullPath] = list( "|".join((oldName, newName)) for (oldName, newName) in files ) - p["/usr/share/applications/hildon"] = [""] - p["/usr/share/icons/hicolor/26x26/hildon"] = [""] - p["/usr/share/icons/hicolor/64x64/hildon"] = [""] - p["/usr/share/icons/hicolor/scalable/hildon"] = [""] + p["/usr/share/applications/hildon"] = ["WatersOfShiloah.desktop"] + p["/usr/share/icons/hicolor/48x48/hildon"] = ["48x48-WatersOfShiloah.png|WatersOfShiloah.png"] if distribution == "debian": print p