forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi2c-tools.yaml
79 lines (70 loc) · 1.74 KB
/
i2c-tools.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
package:
name: i2c-tools
version: "4.4"
epoch: 1
description: Tools for monitoring I2C devices
copyright:
- license: GPL-2.0-or-later AND LGPL-2.1-or-later
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- linux-headers
- openssf-compiler-options
- py3.12-setuptools
- python3-dev
pipeline:
- uses: fetch
with:
expected-sha256: af01d0fbe78e109a2db7137c7e9bfda3f3fb236c3177744c0f2695d1056cde71
uri: https://fossies.org/linux/misc/i2c-tools-${{package.version}}.tar.gz
- runs: |
make DESTDIR="${{targets.destdir}}"
builddir="$(pwd)"
cd "$builddir"/py-smbus
CFLAGS="$CFLAGS -I$builddir/include" python3 setup.py build
cd $builddir
make DESTDIR="${{targets.destdir}}" install
cd "$builddir"/py-smbus
python3 setup.py install --skip-build --root="${{targets.destdir}}"
- uses: strip
subpackages:
- name: i2c-tools-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- i2c-tools
description: i2c-tools dev
- name: i2c-tools-doc
pipeline:
- uses: split/manpages
description: i2c-tools manpages
- name: py3-smbus
pipeline:
- runs: |
install -d "${{targets.subpkgdir}}"/usr/lib
mv "${{targets.destdir}}"/usr/lib/python3* "${{targets.subpkgdir}}"/usr/lib
description: i2c-tools python bindings
dependencies:
runtime:
- i2c-tools
options:
no-depends: true
update:
enabled: true
release-monitor:
identifier: 9272
test:
pipeline:
# AUTOGENERATED
- runs: |
i2cdetect -V
i2cdump -V
i2cget -V
i2cset -V
i2ctransfer -V