How to create XML files describing extra packages for LinuxMCE Add Software subsystem

From LinuxMCE
Revision as of 13:00, 16 March 2007 by Jerry finn (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search


  • XML file should contain the description of one or few extra packages.
  • All packages must be listed inside of tag <packages></packages>
  • Information about each package should be inside of tag <package></package>

The information about of the package consists of the following sections: icon, title, description, homeurl, category, downloadurl, packagename, misc, version, target, importance, PC_Type, Required_Version_Min, Required_Version_Max.

where

icon - the PNG picture of the package encoded by base64 encoder,

homeurl - URL of the package or of the program

downloadurl - url to download the package without its filename or URL of the Debian repository(must begin from deb)

packagename - filename or name of the package

version - version of the package

target - target audience of the package(ie dummy, sophisticated user, techie, coder)

importance - importance level: must have, nicety, niche

PC_Type - type of device for(can be "S", "M", or "SM", where s=server and m=media player)

Required_Version_Min, Required_Version_Max - Maximum and minimum required versions of the LinuxMCE system.

You may leave some items empty, just type "/" in the end of the tag, like <icon/>

Example of the XML file:

<?xml version = '1.0' encoding = 'utf-8'?>
<packages>
	<package>
		<icon/>
		<title>Title of the package</title>
		<description>The long, long, long synopsis</description>
		<homeurl>a link to a home page</homeurl>
		<category>category</category>
		<downloadurl>http://where.to/get/the_packages</downloadurl>
		<packagename>package.deb</packagename>
		<misc></misc>
		<version>0.0.1</version>
		<target>coder</target>
		<importance>niche</importance>
		<PC_Type>SM</PC_Type>
		<Required_Version_Min>2.0.0.39</Required_Version_Min>
		<Required_Version_Max>2.0.0.40</Required_Version_Max>
	</package>
</packages>

To add to XML file the picture do:

echo -ne "<?xml version = '1.0' encoding = 'utf-8'?>\n<packages>\n\t<package>\n\t\t<icon>\n">package.xml
base64-encode<picture.png>>package.xml
echo -ne "\t\t</icon>\n">>package.xml

and so on.