Element: <packageinfo>

Syntax


<!ELEMENT packageinfo    (description?,requires*,utilizes*)>

This element occurs in the element package.

See also : description, requires. utilizes.

Description

The element packageinfo groups elements containg information about the package, namely a description and some deopendency relationship.

The description of the packge is contained in the description sub-element.

The relationship "depends-on" is described by the requires sub-element.

The relationship "will utilize" is described by the utilizes sub-element.

Examples


    <package name="gimp" version="1.2.3">
        <packageinfo>
                <description>
                    <para>The gimp package contains the GNU Image
                    Manipulation Program.
                    This is useful for photo retouching, image
                    composition and image authoring.
                    </para>
                </description>

                <requires><name>gtk+</name></requires>

                <utilizes><name>libtiff</name></utilizes>
                <utilizes><name>libpng</name></utilizes>
                <utilizes><name>libjpeg</name></utilizes>
                <utilizes><name>aalib</name></utilizes>
                <utilizes><name>mpeg_lib</name></utilizes>
                <utilizes><name>python</name></utilizes>

        </required>

        ....

    </package>

The equivalent bash script is :


echo Generating package zlib 1.1.4

#-----------------------------------------
echo Stage "Unpacking a package."

echo Unpacking /usr/src/lfs-packages/zlib.1.1.4.tar.gz into /usr/src
cd /usr/src
[[ $? != 0 ]] &&  echo Command failed && exit 3

tar xzvf /usr/src/lfs-packages/zlib.1.1.4.tar.gz
[[ $? != 0 ]] &&  echo Command failed && exit 3


echo Exiting stage "Unpacking a package."

...

echo End of generating package zlib 1.1.4