{
    "mode": "man",
    "parameter": "pkgdata",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pkgdata/1/json",
    "generated": "2026-11-21T18:05:22Z",
    "synopsis": "pkgdata  [  -h,  -?, --help ] [ -v, --verbose ] [ -c, --copyright | -C, --comment comment ] [",
    "sections": {
        "NAME": {
            "content": "pkgdata - package data for use by ICU\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pkgdata  [  -h,  -?, --help ] [ -v, --verbose ] [ -c, --copyright | -C, --comment comment ] [",
            "subsections": [
                {
                    "name": "-m --mode  -p --name  -O --bldopt  -e --entrypoint  -r --re‐",
                    "content": "vision version ] [ -F, --rebuild ] [ -I, --install ] [ -s, --sourcedir source ] [ -d, --dest‐\ndir destination ] [ -T, --tempdir directory ] [ file ...  ]\n",
                    "flag": "-r",
                    "long": "--entrypoint"
                }
            ]
        },
        "DESCRIPTION": {
            "content": "pkgdata  takes  a set of data files and packages them for use by ICU or applications that use\nICU. The typical reason to package files using pkgdata is to make their  distribution  easier\nand  their  loading by ICU faster and less consuming of limited system resources such as file\ndescriptors.  Packaged data also allow applications to be  distributed  with  fewer  resource\nfiles, or even with none at all if they link against the packaged data directly.\n\npkgdata supports a few different methods of packaging data that serve different purposes.\n\nThe default packaging mode is common, or archive.  In this mode, the different data files are\nbundled together as an architecture-dependent file that can later be memory mapped for use by\nICU. Data packaged using this mode will be looked up under the ICU data directory. Such pack‐\naging  is easy to use for applications resource bundles, for example, as long as the applica‐\ntion can install the packaged file in the ICU data directory.\n\nAnother packaging mode is the dll, or library, mode, where the data files are compiled into a\nshared library. ICU used to be able to dynamically load these shared libraries, but as of ICU\n2.0, such support has been removed. This mode is still useful for two main purposes: to build\nICU itself, as the ICU data is packaged as a shared library by default; and to build resource\nbundles that are linked to the application that uses them. Such resource bundles can then  be\nplaced  anywhere  where the system's dynamic linker will be looking for shared libraries, in‐\nstead of being forced to live inside the ICU data directory.\n\nThe static packaging mode is similar to the shared library one except that it produces a sta‐\ntic library.\n\nFinally, pkgdata supports a files mode which simply copies the data files instead of  packag‐\ning  them  as  a  single file or library. This mode is mainly intended to provide support for\nbuilding ICU before it is packaged as separate small packages for distribution with operating\nsystems such as Debian GNU/Linux for example. Please refer to the packaging documentation  in\nthe ICU source distribution for further information on the use of this mode.\n\npkgdata builds, packages, installs, or cleans the appropriate data based on the options given\nwithout the need to call GNU make anymore.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h -? --help",
                    "content": "Print help about usage and exit.\n",
                    "flag": "-?",
                    "long": "--help"
                },
                {
                    "name": "-v --verbose",
                    "content": "Display extra informative messages during execution.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-c --copyright",
                    "content": "Include a copyright notice in the binary data.\n",
                    "flag": "-c",
                    "long": "--copyright"
                },
                {
                    "name": "-C --comment",
                    "content": "Includes  the specified comment in the resulting data instead of the ICU copyright no‐\ntice.\n",
                    "flag": "-C",
                    "long": "--comment"
                },
                {
                    "name": "-m --mode",
                    "content": "Set the packaging mode to be used by pkgdata.  The different modes and  their  meaning\nare  explained  in  the DESCRIPTION section above. The valid mode names are common (or\narchive), dll (or library), and files.\n",
                    "flag": "-m",
                    "long": "--mode"
                },
                {
                    "name": "-O --bldopt",
                    "content": "Specify options for the builder. The builder is used internally by pkgdata to generate\nthe correct packaged file. Such options include, but are not limited to, setting vari‐\nables used by make(1) during the build of the packaged file. Note:  If  icu-config  is\navailable, then this option is not needed.\n",
                    "flag": "-O",
                    "long": "--bldopt"
                },
                {
                    "name": "-p --name",
                    "content": "Set the packaged file name to name.  This name is also used as the default entry point\nname after having been turned into a valid C identifier.\n",
                    "flag": "-p",
                    "long": "--name"
                },
                {
                    "name": "-e --entrypoint",
                    "content": "Set  the data entry point (used for linking against the data in a shared library form)\nto name.  The default entry point name is the name set by the -n, --name option.\n",
                    "flag": "-e",
                    "long": "--entrypoint"
                },
                {
                    "name": "-r --revision",
                    "content": "Enable versioning of the shared library produced in dll, or library, mode. The version\nnumber has the format major.minor.patchlevel and all parts except for  major  are  op‐\ntional.  If  only major is supplied then the version is assumed to be major.0 for ver‐\nsioning purposes.\n",
                    "flag": "-r",
                    "long": "--revision"
                },
                {
                    "name": "-F --rebuild",
                    "content": "Force the rebuilding of all data and their repackaging.\n",
                    "flag": "-F",
                    "long": "--rebuild"
                },
                {
                    "name": "-I --install",
                    "content": "Install the packaged file (or all the files in the files mode). If the variable  DEST‐\nDIR is set it will be used for installation.\n",
                    "flag": "-I",
                    "long": "--install"
                },
                {
                    "name": "-s --sourcedir",
                    "content": "Set  the  source directory to source.  The default source directory is the current di‐\nrectory.\n",
                    "flag": "-s",
                    "long": "--sourcedir"
                },
                {
                    "name": "-d --destdir",
                    "content": "Set the destination directory to destination.  The default  destination  directory  is\nthe current directory.\n",
                    "flag": "-d",
                    "long": "--destdir"
                },
                {
                    "name": "-T --tempdir",
                    "content": "Set  the  directory used to generate temporary files to directory.  The default tempo‐\nrary directory is the same as the destination directory as set by  the  -d,  --destdir\noption.\n",
                    "flag": "-T",
                    "long": "--tempdir"
                }
            ]
        },
        "AUTHORS": {
            "content": "Steven Loomis\nYves Arrouye\n",
            "subsections": []
        },
        "VERSION": {
            "content": "74.2\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright (C) 2000-2009 IBM, Inc. and others.\n\n\nICU MANPAGE                                6 February 2009                                PKGDATA(1)",
            "subsections": []
        }
    },
    "summary": "pkgdata - package data for use by ICU",
    "flags": [
        {
            "flag": "-?",
            "long": "--help",
            "arg": null,
            "description": "Print help about usage and exit."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Display extra informative messages during execution."
        },
        {
            "flag": "-c",
            "long": "--copyright",
            "arg": null,
            "description": "Include a copyright notice in the binary data."
        },
        {
            "flag": "-C",
            "long": "--comment",
            "arg": null,
            "description": "Includes the specified comment in the resulting data instead of the ICU copyright no‐ tice."
        },
        {
            "flag": "-m",
            "long": "--mode",
            "arg": null,
            "description": "Set the packaging mode to be used by pkgdata. The different modes and their meaning are explained in the DESCRIPTION section above. The valid mode names are common (or archive), dll (or library), and files."
        },
        {
            "flag": "-O",
            "long": "--bldopt",
            "arg": null,
            "description": "Specify options for the builder. The builder is used internally by pkgdata to generate the correct packaged file. Such options include, but are not limited to, setting vari‐ ables used by make(1) during the build of the packaged file. Note: If icu-config is available, then this option is not needed."
        },
        {
            "flag": "-p",
            "long": "--name",
            "arg": null,
            "description": "Set the packaged file name to name. This name is also used as the default entry point name after having been turned into a valid C identifier."
        },
        {
            "flag": "-e",
            "long": "--entrypoint",
            "arg": null,
            "description": "Set the data entry point (used for linking against the data in a shared library form) to name. The default entry point name is the name set by the -n, --name option."
        },
        {
            "flag": "-r",
            "long": "--revision",
            "arg": null,
            "description": "Enable versioning of the shared library produced in dll, or library, mode. The version number has the format major.minor.patchlevel and all parts except for major are op‐ tional. If only major is supplied then the version is assumed to be major.0 for ver‐ sioning purposes."
        },
        {
            "flag": "-F",
            "long": "--rebuild",
            "arg": null,
            "description": "Force the rebuilding of all data and their repackaging."
        },
        {
            "flag": "-I",
            "long": "--install",
            "arg": null,
            "description": "Install the packaged file (or all the files in the files mode). If the variable DEST‐ DIR is set it will be used for installation."
        },
        {
            "flag": "-s",
            "long": "--sourcedir",
            "arg": null,
            "description": "Set the source directory to source. The default source directory is the current di‐ rectory."
        },
        {
            "flag": "-d",
            "long": "--destdir",
            "arg": null,
            "description": "Set the destination directory to destination. The default destination directory is the current directory."
        },
        {
            "flag": "-T",
            "long": "--tempdir",
            "arg": null,
            "description": "Set the directory used to generate temporary files to directory. The default tempo‐ rary directory is the same as the destination directory as set by the -d, --destdir option."
        }
    ],
    "examples": [],
    "see_also": []
}