File tree 1 file changed +19
-0
lines changed 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,24 @@ 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
+ # Create pkgconfig directory and properly relocate .pc files
59
+ mkdir -p ${{targets.destdir}}/usr/lib/pkgconfig/
60
+ find ${{targets.destdir}}/home/linuxbrew -name "*.pc" | while read pc_file; do
61
+ filename=$(basename "$pc_file")
62
+ orig_dir=$(dirname "$pc_file")
63
+
64
+ # Move the file to pkgconfig
65
+ mv "$pc_file" "${{targets.destdir}}/usr/lib/pkgconfig/$filename"
66
+
67
+ # Ensure original directory still exists
68
+ mkdir -p "$orig_dir"
69
+
70
+ # Create relative symlink
71
+ ln -s "../../../../../usr/lib/pkgconfig/$filename" "$pc_file"
72
+ done
73
+
74
+ # Create profile.d script
57
75
mkdir -p ${{targets.destdir}}/etc/profile.d/
58
76
echo "export PATH=\$PATH:/home/linuxbrew/.linuxbrew/bin" > ${{targets.destdir}}/etc/profile.d/brew.sh
59
77
echo "export HOMEBREW_NO_AUTO_UPDATE=1" >> ${{targets.destdir}}/etc/profile.d/brew.sh
79
97
- runs : |
80
98
. /etc/profile.d/brew.sh
81
99
HOME=/root brew --version
100
+ - uses : test/pkgconf
You can’t perform that action at this time.
0 commit comments