-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathdstat.yaml
50 lines (43 loc) · 1.24 KB
/
dstat.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
package:
name: dstat
version: 0.7.4
epoch: 2
description: A versatile resource statistics tool
copyright:
- license: GPL-2.0-only
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
pipeline:
- uses: git-checkout
with:
repository: https://github.com/dagwieers/dstat
tag: v${{package.version}}
expected-commit: 6f5db0aed26bf8cf2700d4ffe90a9bd3436ac728
- uses: patch
with:
# The patch source is https://github.com/efexgee/dstat/commit/220a785321b13b6df92a536080aca6ef1cb644ad.patch
patches: 220a785321b13b6df92a536080aca6ef1cb644ad.patch
- runs: |
make DESTDIR=${{targets.destdir}} install
make DESTDIR="${{targets.destdir}}" docs
# Get rid of deprecation warning.
sed -i "s/import collections/import collections.abc/g" -i "${{targets.destdir}}"/usr/bin/dstat
sed -i "s/collections.Sequence/collections.abc.Sequence/g" -i "${{targets.destdir}}"/usr/bin/dstat
- uses: strip
subpackages:
- name: dstat-doc
description: dstat manpages
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
update:
enabled: true
github:
identifier: dagwieers/dstat
strip-prefix: v