Skip to content

Commit 64418df

Browse files
priyanshu shrivastavapriyanshuraj400
priyanshu shrivastava
authored andcommitted
Moved .pc files and added pkgconf test
1 parent b110149 commit 64418df

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

brew.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ pipeline:
5454
set -x
5555
mkdir -p ${{targets.destdir}}/home/linuxbrew/.linuxbrew/
5656
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
5765
mkdir -p ${{targets.destdir}}/etc/profile.d/
5866
echo "export PATH=\$PATH:/home/linuxbrew/.linuxbrew/bin" > ${{targets.destdir}}/etc/profile.d/brew.sh
5967
echo "export HOMEBREW_NO_AUTO_UPDATE=1" >> ${{targets.destdir}}/etc/profile.d/brew.sh
@@ -82,3 +90,4 @@ test:
8290
- runs: |
8391
. /etc/profile.d/brew.sh
8492
HOME=/root brew --version
93+
- uses: test/pkgconf

0 commit comments

Comments
 (0)