-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathdash.yaml
91 lines (79 loc) · 2.05 KB
/
dash.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
85
86
87
88
89
90
91
# Generated from https://git.alpinelinux.org/aports/plain/main/dash/APKBUILD
#nolint:git-checkout-must-use-github-updates
package:
name: dash
version: 0.5.12
epoch: 30
description: Small and fast POSIX-compliant shell
copyright:
- license: BSD-3-Clause AND GPL-2.0-or-later
dependencies:
runtime:
- merged-bin
- wolfi-baselayout
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- coreutils
pipeline:
- uses: git-checkout
with:
repository: https://git.kernel.org/pub/scm/utils/dash/dash.git
tag: v${{package.version}}
expected-commit: 4bbf8721a3ac6401ced6a0454956801f6ba37256
- runs: ./autogen.sh
- uses: autoconf/configure
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
test:
pipeline:
- runs: |
fail() { echo "$@" 1>&2; exit 1; }
p=/usr/bin/dash
[ -f "$p" ] || fail "$p is not a file"
[ -x "$p" ] || fail "$p is not executable"
# /usr/bin/sh won't actually be dash here, so test dash explicitly.
"$p" -ex <<"EOF"
fail() { echo "$@" 1>&2; exit 1; }
[ -n "$PPID" ] || fail "env var PPID not set"
[ -n "$$" ] || fail "env var \$\$ not set"
EOF
dash -v
subpackages:
- name: dash-doc
description: dash manpages
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
dependencies:
runtime:
- merged-bin
- wolfi-baselayout
- name: dash-binsh
dependencies:
provider-priority: 60
runtime:
- dash
- merged-bin
- wolfi-baselayout
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/bin
ln -s dash "${{targets.subpkgdir}}"/usr/bin/sh
test:
pipeline:
- runs: |
[ /usr/bin/sh -ef /usr/bin/dash ] || { echo "/usr/bin/sh is not same as /usr/bin/dash"; exit 1; }
sh -v
update:
enabled: true
release-monitor:
identifier: 394