-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathbrew.yaml
81 lines (75 loc) · 2.23 KB
/
brew.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
package:
name: brew
version: 4.2.11
epoch: 0
description: "The homebrew package manager"
copyright:
- license: BSD-2-Clause
dependencies:
runtime:
- bash
- build-base
- busybox
- coreutils
- curl
- gcc
- git
- grep
- posix-libc-utils
- procps
- ruby-3.1
# Drop commands/depends/provides as the SCA doesn't work on brew since itself is a package manager
options:
no-commands: true
no-depends: true
no-provides: true
scriptlets:
post-install: |
#!/bin/sh
echo
echo "WARNING: If you use 'brew update', you will be unable to use 'apk upgrade brew' to update this package."
echo
echo "To use 'brew' for the first time, you will need /home/linuxbrew/.linuxbrew/bin in your PATH:"
echo ". /etc/profile.d/brew.sh"
echo
post-deinstall: |
#!/bin/sh
rm -rf /home/linuxbrew
environment:
contents:
packages:
- git
- wolfi-base
pipeline:
- uses: git-checkout
with:
repository: https://github.com/Homebrew/brew
tag: ${{package.version}}
destination: ./brew
expected-commit: d7d4c8266210c024b93a450a7d357cec0b46a1bb
- runs: |
set -x
mkdir -p ${{targets.destdir}}/home/linuxbrew/.linuxbrew/
cp -a ./brew/bin/ ./brew/Library/ ./brew/package/ ${{targets.destdir}}/home/linuxbrew/.linuxbrew/
mkdir -p ${{targets.destdir}}/etc/profile.d/
echo "export PATH=\$PATH:/home/linuxbrew/.linuxbrew/bin" > ${{targets.destdir}}/etc/profile.d/brew.sh
echo "export HOMEBREW_NO_AUTO_UPDATE=1" >> ${{targets.destdir}}/etc/profile.d/brew.sh
subpackages:
- name: brew-doc
pipeline:
- runs: |
install -m 644 -D ./brew/manpages/brew.1 \
${{targets.subpkgdir}}/usr/share/man/man1/brew.1
mkdir -p ${{targets.subpkgdir}}/usr/share/doc/brew
cp -a ./brew/docs ./brew/CHANGELOG.md ./brew/CONTRIBUTING.md ./brew/LICENSE.txt ./brew/README.md "${{targets.subpkgdir}}/usr/share/doc/brew"
- uses: split/manpages
description: brew docs and manpages
update:
enabled: true
github:
identifier: Homebrew/brew
test:
pipeline:
- runs: |
. /etc/profile.d/brew.sh
HOME=/root brew --version