File tree 1 file changed +9
-0
lines changed 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ pipeline:
54
54
set -x
55
55
mkdir -p ${{targets.destdir}}/home/linuxbrew/.linuxbrew/
56
56
cp -a ./brew/bin/ ./brew/Library/ ./brew/package/ ${{targets.destdir}}/home/linuxbrew/.linuxbrew/
57
+
58
+ # Relocate .pc files to /usr/lib/pkgconfig and create symlinks
59
+ mkdir -p ${{targets.destdir}}/usr/lib/pkgconfig/
60
+ find ${{targets.destdir}}/home/linuxbrew -name "*.pc" | while read pc_file; do
61
+ mkdir -p "$(dirname "$pc_file")" && mv "$pc_file" "${{targets.destdir}}/usr/lib/pkgconfig/$(basename "$pc_file")" && ln -s "../../../../../usr/lib/pkgconfig/$(basename "$pc_file")" "$pc_file"
62
+ done
63
+
64
+ # Create profile.d script
57
65
mkdir -p ${{targets.destdir}}/etc/profile.d/
58
66
echo "export PATH=\$PATH:/home/linuxbrew/.linuxbrew/bin" > ${{targets.destdir}}/etc/profile.d/brew.sh
59
67
echo "export HOMEBREW_NO_AUTO_UPDATE=1" >> ${{targets.destdir}}/etc/profile.d/brew.sh
82
90
- runs : |
83
91
. /etc/profile.d/brew.sh
84
92
HOME=/root brew --version
93
+ - uses : test/pkgconf
You can’t perform that action at this time.
0 commit comments