-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathhwdata.yaml
84 lines (71 loc) · 2.22 KB
/
hwdata.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Generated from https://git.alpinelinux.org/aports/plain/main/hwdata/APKBUILD
package:
name: hwdata
version: "0.379"
epoch: 0
description: Hardware identification and configuration data
copyright:
- license: GPL-2.0-or-later OR XFree86-1.1
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
# transform melange version to contain "+" rather than third "." so we can use a var in the fetch URL
var-transforms:
- from: ${{package.version}}
match: (\d+\.\d+)\.(\d+)
replace: $1-$2
to: mangled-package-version
pipeline:
- uses: fetch
with:
expected-sha256: b98ef646d530d5fd3afa3180efbf7c8e22d3da0088f5836f41ee25380d87b092
uri: https://github.com/vcrhonek/hwdata/archive/refs/tags/v${{vars.mangled-package-version}}.tar.gz
- uses: autoconf/configure
with:
opts: |
--prefix=/usr \
--sysconfdir=/etc \
--datadir=/usr/share \
--disable-blacklist
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: hwdata-dev
pipeline:
- uses: split/dev
description: hwdata dev
- name: hwdata-usb
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share/hwdata
mv ${{targets.destdir}}/usr/share/hwdata/usb.ids ${{targets.subpkgdir}}/usr/share/hwdata
- name: hwdata-pci
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share/hwdata
mv ${{targets.destdir}}/usr/share/hwdata/pci.ids ${{targets.subpkgdir}}/usr/share/hwdata
- name: hwdata-pnp
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share/hwdata
mv ${{targets.destdir}}/usr/share/hwdata/pnp.ids ${{targets.subpkgdir}}/usr/share/hwdata
- name: hwdata-net
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr/share/hwdata
mv ${{targets.destdir}}/usr/share/hwdata/oui.txt ${{targets.subpkgdir}}/usr/share/hwdata
mv ${{targets.destdir}}/usr/share/hwdata/iab.txt ${{targets.subpkgdir}}/usr/share/hwdata
update:
enabled: true
version-transform:
- match: "-"
replace: .
github:
identifier: vcrhonek/hwdata
strip-prefix: v