vinix-ports / ports / hwdata-pci / PKGBUILD.vile
18 lines · 18 sloc · 880 bytes · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(hwdata-pci,
2 #:pkgname, "hwdata-pci",
3 #:pkgver, "0.393",
4 #:pkgrel, 1,
5 #:pkgdesc, "PCI device names for the Vinix X11 stack",
6 #:arch, [#:any],
7 #:license, "GPL-2.0-or-later OR BSD-3-Clause",
8 #:url, "https://github.com/vcrhonek/hwdata",
9 #:source, ["https://github.com/vcrhonek/hwdata/archive/refs/tags/v0.393.tar.gz"],
10 #:sha256sums, ["322add86944680e99d04468d49de180a7ce0c77fb406f7abde8ab14f2d161051"],
11 #:check, fn() {
12 run("grep", "-q", "^8086 ", "hwdata-0.393/pci.ids")
13 },
14 #:package, fn() {
15 run("install", "-Dm644", "hwdata-0.393/pci.ids", string-append(pkgdir(), "/usr/share/hwdata/pci.ids"))
16 run("install", "-Dm644", "hwdata-0.393/COPYING", string-append(pkgdir(), "/usr/share/licenses/hwdata-pci/COPYING"))
17 run("install", "-Dm644", "hwdata-0.393/LICENSE", string-append(pkgdir(), "/usr/share/licenses/hwdata-pci/LICENSE"))
18 })
19