Files
distro/recipes/libdisplay-info.py
T
2026-06-02 21:38:47 +02:00

33 lines
1.0 KiB
Python

version = "0.2.0"
revision = 1
description = "EDID and DisplayID parsing library"
license = "MIT"
url = "https://gitlab.freedesktop.org/emersion/libdisplay-info"
source = tarball(
url=f"https://gitlab.freedesktop.org/emersion/libdisplay-info/-/releases/{version}/downloads/libdisplay-info-{version}.tar.xz",
sha256="5a2f002a16f42dd3540c8846f80a90b8f4bdcd067a94b9d2087bc2feae974176",
)
host_deps = ["binutils", "gcc", "pkgconf"]
# Reads hwdata's pnp.ids at build time.
deps = [profile["libc"], "hwdata"]
def configure(self):
# libdisplay-info generates a C table from hwdata's pnp.ids at build time,
# looking on the *build* machine (/usr/share/hwdata/pnp.ids). Our hwdata is
# in the target sysroot, so stage the (arch-independent) data there first.
self.run(
"sh",
"-c",
"mkdir -p /usr/share/hwdata && "
"cp -f /sysroot/usr/share/hwdata/pnp.ids /usr/share/hwdata/pnp.ids",
)
meson_configure(self)
def build(self):
meson_build(self)
def install(self):
meson_install(self)