Files
2026-06-02 21:38:47 +02:00

23 lines
776 B
Python

version = "0.394"
revision = 1
description = "Hardware identification data (pci.ids, usb.ids, ...)"
license = "GPL-2.0-or-later OR XFree86-1.1"
url = "https://github.com/vcrhonek/hwdata"
source = tarball(
url=f"https://github.com/vcrhonek/hwdata/archive/v{version}/hwdata-{version}.tar.gz",
sha256="b7c3fd7214a3b7c49d2661db127a712dc11cffd1799f793947aa1cb20aaf3298",
)
host_deps = ["pkgconf"]
# Pure data + a hwdata.pc; nothing links against it.
deps = []
def configure(self):
# hwdata ships a hand-written configure that expects an in-tree build.
self.run("cp", "-rp", f"{self.source_dir}/.", self.build_dir)
self.run("./configure", "--prefix=/usr", "--disable-blacklist")
def install(self):
self.run("make", "install", f"DESTDIR={self.dest_dir}")