Package Contents

A package contains files that are installed on a target system as well as additionals, which are only relevant for the package manager and the repository management software (e.g. to create entries in the Management Repository and Sync Database).

Package

The metadata contained in a package is described by several components, which are described in more detail in the sections for .MTREE, .BUILDINFO and .PKGINFO.

Package files are read and their contents parsed, which can subsequently be described by a JSON schema.

Below is a list of currently understood versions of the schema.

PackageV1

{
  "title": "PackageV1",
  "description": "Package representation version 1\n\nAttributes\n----------\nbuildinfo: BuildInfo\n    A .BUILDINFO file representation\ncsize: CSize\n    The file size of the Package\nfilename: FileName\n    The filename of the Package\nmd5sum: str\n    An MD5 checksum for the package\nmtree: MTree\n    An .MTREE file representation\npgpsig: str | None\n    An optional PGP signature (in base64 representation) for the package\npkginfo: PkgInfo\n    A .PKGINFO file representation\nsha256sum: str\n    A SHA256 checksum for the package",
  "type": "object",
  "properties": {
    "sha256sum": {
      "title": "Sha256Sum",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "pgpsig": {
      "title": "Pgpsig",
      "pattern": "^[0-9A-Za-z/+]+={0,2}$",
      "type": "string"
    },
    "md5sum": {
      "title": "Md5Sum",
      "pattern": "^[a-f0-9]{32}$",
      "type": "string"
    },
    "filename": {
      "title": "Filename",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*-([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)-(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)(.pkg.tar)(|\\.bz2|\\.gz|\\.xz|\\.zst)$",
      "type": "string"
    },
    "csize": {
      "title": "Csize",
      "minimum": 0,
      "type": "integer"
    },
    "buildinfo": {
      "$ref": "#/definitions/BuildInfo"
    },
    "mtree": {
      "$ref": "#/definitions/MTree"
    },
    "pkginfo": {
      "$ref": "#/definitions/PkgInfo"
    }
  },
  "required": [
    "sha256sum",
    "md5sum",
    "filename",
    "csize",
    "buildinfo",
    "mtree",
    "pkginfo"
  ],
  "definitions": {
    "BuildInfo": {
      "title": "BuildInfo",
      "description": "The representation of a .BUILDINFO file\n\nThis is a template class and should not be used directly. Instead instantiate one of the classes derived from it.",
      "type": "object",
      "properties": {}
    },
    "MTreeEntry": {
      "title": "MTreeEntry",
      "description": "An entry in an MTree\n\nThis is a template class and should not be used directly. Instead instantiate one of the classes derived from it.",
      "type": "object",
      "properties": {}
    },
    "MTree": {
      "title": "MTree",
      "description": "A class to describe an mtree file\n\nAttributes\n----------\nfiles: list[File]\n    A list of File instances, representing the entries in an mtree file",
      "type": "object",
      "properties": {
        "entries": {
          "title": "Entries",
          "type": "array",
          "items": {
            "$ref": "#/definitions/MTreeEntry"
          }
        }
      },
      "required": [
        "entries"
      ]
    },
    "PkgInfo": {
      "title": "PkgInfo",
      "description": "The representation of a .PKGINFO file\n\nThis is a template class and should not be used directly. Instead instatiate one of the classes derived from it.",
      "type": "object",
      "properties": {}
    }
  }
}

.MTREE

The .MTREE files contained in a package are mtree files, which describe the contents of a package. Entities such as directories, files and symlinks are described in a binary format that lists their ownership, permissions, creation date and various checksums.

Not all mtree keywords are used during package creation, which means that only a subset of them are available in the eventual .MTREE file.

MTreeEntry

The entries of an .MTREE file are parsed and can subsequently be described by a JSON schema.

Below is a list of currently understood versions of the schema.

MTreeEntryV1

{
  "title": "MTreeEntryV1",
  "description": "An entry in an MTree (version 1)\n\nAttributes\n----------\ngid: int\n    A group ID >0, <1000\nlink: str | None\n    An optional string representing a relative or absolute file\nmd5: str | None\n    A optional string representing an MD5 checksum\nmode: str\n    A three or four digit long string, consisting only of valid file modes\nname: str\n    A string representing an absolute file location in mtree format\nschema_version: int\n    A schema version (defaults to 1)\nsha256:\n    An optional string representing a SHA-256 checksum\nsize: int\n    A non-negative integer describing a file size in bytes\ntime: float\n    A float > 0 representing a unix timestamp (seconds since the epoch)\ntype_: str\n    A string representing a valid mtree type (one of block, char, dir, fifo, file, link or socket)\nuid: int\n    A user ID >0, <1000",
  "type": "object",
  "properties": {
    "uid": {
      "title": "Uid",
      "exclusiveMaximum": 1000,
      "minimum": 0,
      "type": "integer"
    },
    "gid": {
      "title": "Gid",
      "exclusiveMaximum": 1000,
      "minimum": 0,
      "type": "integer"
    },
    "time": {
      "title": "Time",
      "minimum": 0,
      "type": "number"
    },
    "sha256": {
      "title": "Sha256",
      "pattern": "^^[a-f0-9]{64}$$",
      "type": "string"
    },
    "type_": {
      "title": "Type ",
      "pattern": "^(block|char|dir|fifo|file|link|socket)$",
      "type": "string"
    },
    "name": {
      "title": "Name",
      "pattern": "^/[A-Za-z0-9.,:;/_()@\\\\&$?!+%~{}<>*\\-\\\"\\'\\[\\]\\`^|]+$",
      "type": "string"
    },
    "md5": {
      "title": "Md5",
      "pattern": "^^[a-f0-9]{32}$$",
      "type": "string"
    },
    "link": {
      "title": "Link",
      "pattern": "^([A-Za-z0-9.,:;/_()@\\\\&$?!+%~{}<>*\\-\\\"\\'\\[\\]\\`^|]+|/[A-Za-z0-9.,:;/_()@\\\\&$?!+%~{}<>*\\-\\\"\\'\\[\\]\\`^|]+)$",
      "type": "string"
    },
    "size": {
      "title": "Size",
      "minimum": 0,
      "type": "integer"
    },
    "mode": {
      "title": "Mode",
      "pattern": "^[01234567]{3,4}$",
      "type": "string"
    },
    "schema_version": {
      "title": "Schema Version",
      "default": 1,
      "minimum": 1,
      "maximum": 1,
      "type": "integer"
    }
  },
  "required": [
    "uid",
    "gid",
    "time",
    "type_",
    "name",
    "mode"
  ]
}

.BUILDINFO

The .BUILDINFO files contained in packages are BUILDINFO files, which describe aspects of the build environment present during the creation of a package.

Formats for the file are specified by makepkg. Its write_buildinfo() function implements only the latest version of the available formats.

BuildInfo

The entries in a .BUILDINFO file are parsed and can subsequently be described by a JSON schema.

Below is a list of currently understood versions of the schema.

BuildInfoV1

{
  "title": "BuildInfoV1",
  "description": "The representation of a .BUILDINFO file (version 1)\n\nAttributes\n----------\nbuilddate: NonNegativeInt\n    A number >= 0\nbuilddir: str\n    A string representing an absolute directory\nbuildenv: list[str]\n    A list of strings as described by makepkg.conf's BUILDENV option\ninstalled: list[str]\n    A list of strings representing <package_name>-<epoch><version>-<pkgrel>-<architecture> of packages installed\n    during the creation of a package\noptions: list[str]\n    A list of strings representing makepkg.conf OPTIONS used during the creation of a package\npackager: str\n    A string representing a packager UID (e.g. \"First Last <mail@example.tld>\")\npkgarch: str\n    A valid CPU architecture for a package\npkgbase: str\n    A string representing a valid pkgbase for a package\npkgbuild_sha256sum: str\n    A string representing a SHA-256 checksum for a PKGBUILD of a package\npkgname: str\n    A string representing a valid pkgname of a package\npkgver: str\n    A valid package version string which includes epoch, version and pkgrel\nschema_version: int\n    1 - representing `format = 1` in the .BUILDINFO file; schema_version is chosen for uniformity",
  "type": "object",
  "properties": {
    "schema_version": {
      "title": "Schema Version",
      "default": 1,
      "minimum": 1,
      "maximum": 1,
      "type": "integer"
    },
    "pkgver": {
      "title": "Pkgver",
      "pattern": "^([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)$",
      "type": "string"
    },
    "pkgname": {
      "title": "Pkgname",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "pkgbuild_sha256sum": {
      "title": "Pkgbuild Sha256Sum",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "pkgbase": {
      "title": "Pkgbase",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "pkgarch": {
      "title": "Pkgarch",
      "pattern": "^(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$",
      "type": "string"
    },
    "packager": {
      "title": "Packager",
      "pattern": "^[\\w\\s\\-().]+\\s<(.*)>$",
      "type": "string"
    },
    "options": {
      "title": "Options",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(!|)[\\w\\-.]+$"
      }
    },
    "installed": {
      "title": "Installed",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^([a-z\\d_@+]+[a-z\\d\\-._@+]*)-([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)-(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$"
      }
    },
    "buildenv": {
      "title": "Buildenv",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(!|)[\\w\\-.]+$"
      }
    },
    "builddir": {
      "title": "Builddir",
      "type": "string"
    },
    "builddate": {
      "title": "Builddate",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "pkgver",
    "pkgname",
    "pkgbuild_sha256sum",
    "pkgbase",
    "pkgarch",
    "packager",
    "options",
    "installed",
    "buildenv",
    "builddir",
    "builddate"
  ]
}

BuildInfoV2

Note

If devtools has been used as buildtool, the buildtoolver has to be of the form <optional_epoch><pkgver>-<pkgrel>-<arch> (e.g. 20220207-1-any)!

{
  "title": "BuildInfoV2",
  "description": "The representation of a .BUILDINFO file (version 2)\n\nAttributes\n----------\nbuilddate: NonNegativeInt\n    A number >= 0\nbuilddir: str\n    A string representing an absolute directory\nbuildenv: list[str]\n    A list of strings as described by makepkg.conf's BUILDENV option\nbuildtool: str\n    The package name of the build tool used to create a package\nbuildtoolver: str\n    The version of the build tool used to create a package\ninstalled: list[str]\n    A list of strings representing <package_name>-<epoch><version>-<pkgrel>-<architecture> of packages installed\n    during the creation of a package\noptions: list[str]\n    A list of strings representing makepkg.conf OPTIONS used during the creation of a package\npackager: str\n    A string representing a packager UID (e.g. \"First Last <mail@example.tld>\")\npkgarch: str\n    A valid CPU architecture for a package\npkgbase: str\n    A string representing a valid pkgbase for a package\npkgbuild_sha256sum: str\n    A string representing a SHA-256 checksum for a PKGBUILD of a package\npkgname: str\n    A string representing a valid pkgname of a package\npkgver: str\n    A valid package version string which includes epoch, version and pkgrel\nschema_version: int\n    2 - representing `format = 2` in the .BUILDINFO file; schema_version is chosen for uniformity\nstartdir: str\n    A string representing the absolute startdir directory of a package",
  "type": "object",
  "properties": {
    "startdir": {
      "title": "Startdir",
      "type": "string"
    },
    "schema_version": {
      "title": "Schema Version",
      "default": 2,
      "minimum": 2,
      "maximum": 2,
      "type": "integer"
    },
    "pkgver": {
      "title": "Pkgver",
      "pattern": "^([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)$",
      "type": "string"
    },
    "pkgname": {
      "title": "Pkgname",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "pkgbuild_sha256sum": {
      "title": "Pkgbuild Sha256Sum",
      "pattern": "^[a-f0-9]{64}$",
      "type": "string"
    },
    "pkgbase": {
      "title": "Pkgbase",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "pkgarch": {
      "title": "Pkgarch",
      "pattern": "^(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$",
      "type": "string"
    },
    "packager": {
      "title": "Packager",
      "pattern": "^[\\w\\s\\-().]+\\s<(.*)>$",
      "type": "string"
    },
    "options": {
      "title": "Options",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(!|)[\\w\\-.]+$"
      }
    },
    "installed": {
      "title": "Installed",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^([a-z\\d_@+]+[a-z\\d\\-._@+]*)-([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)-(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$"
      }
    },
    "buildtoolver": {
      "title": "Buildtoolver",
      "type": "string"
    },
    "buildtool": {
      "title": "Buildtool",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "buildenv": {
      "title": "Buildenv",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^(!|)[\\w\\-.]+$"
      }
    },
    "builddir": {
      "title": "Builddir",
      "type": "string"
    },
    "builddate": {
      "title": "Builddate",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "startdir",
    "pkgver",
    "pkgname",
    "pkgbuild_sha256sum",
    "pkgbase",
    "pkgarch",
    "packager",
    "options",
    "installed",
    "buildtoolver",
    "buildtool",
    "buildenv",
    "builddir",
    "builddate"
  ]
}

.PKGINFO

The .PKGINFO files contained in packages describe their metadata.

Formats for the file are specified by makepkg. Its write_pkginfo() function implements only the latest version of the available formats.

PkgInfo

The entries in a .PKGINFO file are parsed and can subsequently be described by a JSON schema.

Below is a list of currently understood versions of the schema.

PkgInfoV1

{
  "title": "PkgInfoV1",
  "description": "A PkgInfo version 1\n\nAttributes\n----------\narch: str\n    A string representing a CPU architecture\nbackup: list[str] | None\n    An optional list of strings representing relative file paths\nbase: str\n    A string representing a pkgbase\nbuilddate: int\n    A number representing a build date (in seconds since the epoch)\ncheckdepends: list[str] | None\n    An optional list of strings representing package names a package requires for tests\nconflicts: list[str] | None\n    An optional list of strings representing package names a package conflicts with\ndepends: list[str] | None\n    An optional list of strings representing package names a package depends on\ndesc: str\n    A string that serves as description for a package\nfakeroot_version: str\n    A string representing a version of fakeroot\ngroups: list[str] | None\n    An optional list of strings representing group names a package belongs to\nisize: int\n    A number representing the installed sized of a package in bytes\npackager: str\n    A string describing the UID of a package's packager\nlicense: list[str]\n    A list of strings describing the license identifiers that apply to a package\nmakedepends: list[str] | None\n    An optional list of strings representing package names a package requires for building\nmakepkg_version: str\n    A string representing a version of makepkg\nname: str\n    A string representing the name of a package\noptdepends: list[str] | None\n    An optional list of strings representing package names a package requires optionally\nprovides: list[str] | None\n    An optional list of strings representing package names a package provides\nreplaces: list[str] | None\n    An optional list of strings representing package names a package replaces\nurl: str\n    A string representing the upstream URL of a package\nversion: str\n    A string representing the full version (optional epoch, version and pkgrel) of a package",
  "type": "object",
  "properties": {
    "version": {
      "title": "Version",
      "pattern": "^([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)$",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "minLength": 1,
      "maxLength": 2083,
      "format": "uri",
      "type": "string"
    },
    "schema_version": {
      "title": "Schema Version",
      "default": 1,
      "minimum": 1,
      "maximum": 1,
      "type": "integer"
    },
    "replaces": {
      "title": "Replaces",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "provides": {
      "title": "Provides",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "optdepends": {
      "title": "Optdepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "title": "Name",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "makepkg_version": {
      "title": "Makepkg Version",
      "pattern": "^(([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*)$",
      "type": "string"
    },
    "makedepends": {
      "title": "Makedepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "license": {
      "title": "License",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "packager": {
      "title": "Packager",
      "pattern": "^[\\w\\s\\-().]+\\s<(.*)>$",
      "type": "string"
    },
    "isize": {
      "title": "Isize",
      "minimum": 0,
      "type": "integer"
    },
    "groups": {
      "title": "Groups",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$"
      }
    },
    "fakeroot_version": {
      "title": "Fakeroot Version",
      "pattern": "^(([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*)$",
      "type": "string"
    },
    "desc": {
      "title": "Desc",
      "type": "string"
    },
    "depends": {
      "title": "Depends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conflicts": {
      "title": "Conflicts",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checkdepends": {
      "title": "Checkdepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "builddate": {
      "title": "Builddate",
      "minimum": 0,
      "type": "integer"
    },
    "base": {
      "title": "Base",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "backup": {
      "title": "Backup",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "arch": {
      "title": "Arch",
      "pattern": "^(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$",
      "type": "string"
    }
  },
  "required": [
    "version",
    "url",
    "name",
    "makepkg_version",
    "license",
    "packager",
    "isize",
    "fakeroot_version",
    "desc",
    "builddate",
    "base",
    "arch"
  ]
}

PkgInfoV2

In this version the optional xdata attribute has been introduced.

{
  "title": "PkgInfoV2",
  "description": "A PkgInfo version 2\n\nAttributes\n----------\narch: str\n    A string representing a CPU architecture\nbackup: list[str] | None\n    An optional list of strings representing relative file paths\nbase: str\n    A string representing a pkgbase\nbuilddate: int\n    A number representing a build date (in seconds since the epoch)\ncheckdepends: list[str] | None\n    An optional list of strings representing package names a package requires for tests\nconflicts: list[str] | None\n    An optional list of strings representing package names a package conflicts with\ndepends: list[str] | None\n    An optional list of strings representing package names a package depends on\ndesc: str\n    A string that serves as description for a package\nfakeroot_version: str\n    A string representing a version of fakeroot\ngroups: list[str] | None\n    An optional list of strings representing group names a package belongs to\nisize: int\n    A number representing the installed sized of a package in bytes\npackager: str\n    A string describing the UID of a package's packager\nlicense: list[str]\n    A list of strings describing the license identifiers that apply to a package\nmakedepends: list[str] | None\n    An optional list of strings representing package names a package requires for building\nmakepkg_version: str\n    A string representing a version of makepkg\nname: str\n    A string representing the name of a package\noptdepends: list[str] | None\n    An optional list of strings representing package names a package requires optionally\nprovides: list[str] | None\n    An optional list of strings representing package names a package provides\nreplaces: list[str] | None\n    An optional list of strings representing package names a package replaces\nurl: str\n    A string representing the upstream URL of a package\nversion: str\n    A string representing the full version (optional epoch, version and pkgrel) of a package\nxdata: list[PkgType] | None\n    An optional list of extra data",
  "type": "object",
  "properties": {
    "xdata": {
      "title": "Xdata",
      "default": [],
      "type": "array",
      "items": {
        "$ref": "#/definitions/PkgType"
      }
    },
    "version": {
      "title": "Version",
      "pattern": "^([1-9]+[0-9]*:|)([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*-[1-9]+[0-9]*(|[.]{1}[1-9]+[0-9]*)$",
      "type": "string"
    },
    "url": {
      "title": "Url",
      "minLength": 1,
      "maxLength": 2083,
      "format": "uri",
      "type": "string"
    },
    "schema_version": {
      "title": "Schema Version",
      "default": 2,
      "minimum": 2,
      "maximum": 2,
      "type": "integer"
    },
    "replaces": {
      "title": "Replaces",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "provides": {
      "title": "Provides",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "optdepends": {
      "title": "Optdepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "name": {
      "title": "Name",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "makepkg_version": {
      "title": "Makepkg Version",
      "pattern": "^(([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*)$",
      "type": "string"
    },
    "makedepends": {
      "title": "Makedepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "license": {
      "title": "License",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "packager": {
      "title": "Packager",
      "pattern": "^[\\w\\s\\-().]+\\s<(.*)>$",
      "type": "string"
    },
    "isize": {
      "title": "Isize",
      "minimum": 0,
      "type": "integer"
    },
    "groups": {
      "title": "Groups",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$"
      }
    },
    "fakeroot_version": {
      "title": "Fakeroot Version",
      "pattern": "^(([A-Za-z\\d]+)[_+.]?[A-Za-z\\d_+.]*)$",
      "type": "string"
    },
    "desc": {
      "title": "Desc",
      "type": "string"
    },
    "depends": {
      "title": "Depends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "conflicts": {
      "title": "Conflicts",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checkdepends": {
      "title": "Checkdepends",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "builddate": {
      "title": "Builddate",
      "minimum": 0,
      "type": "integer"
    },
    "base": {
      "title": "Base",
      "pattern": "^[a-z\\d_@+]+[a-z\\d\\-._@+]*$",
      "type": "string"
    },
    "backup": {
      "title": "Backup",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "arch": {
      "title": "Arch",
      "pattern": "^(aarch64|any|arm|armv6h|armv7h|i486|i686|pentium4|riscv32|riscv64|x86_64|x86_64_v2|x86_64_v3|x86_64_v4)$",
      "type": "string"
    }
  },
  "required": [
    "version",
    "url",
    "name",
    "makepkg_version",
    "license",
    "packager",
    "isize",
    "fakeroot_version",
    "desc",
    "builddate",
    "base",
    "arch"
  ],
  "definitions": {
    "PkgTypeEnum": {
      "title": "PkgTypeEnum",
      "description": "An Enum to distinguish different package types\n\n    The member values represents the name of a possible repod.files.pkginfo.PkgType value\n\n    Attributes\n    ----------\n    PKG: str\n        A default package\n    DEBUG: str\n        A debug package\n    SOURCE: str\n        A source package\n    SPLIT: str\n        A split package\n    ",
      "enum": [
        "pkg",
        "debug",
        "src",
        "split"
      ]
    },
    "PkgType": {
      "title": "PkgType",
      "description": "A package type\n\nAttributes\n----------\npkgtype: PkgTypeEnum\n    A member of PkgTypeEnum representing a valid package type",
      "type": "object",
      "properties": {
        "pkgtype": {
          "$ref": "#/definitions/PkgTypeEnum"
        }
      },
      "required": [
        "pkgtype"
      ]
    }
  }
}