File tree 1 file changed +11
-6
lines changed 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
package :
2
2
name : checkov
3
3
version : 3.0.34
4
- epoch : 1
4
+ epoch : 2
5
5
description : " static code and composition analysis tool for IaC"
6
6
copyright :
7
7
- license : MIT
@@ -42,13 +42,18 @@ pipeline:
42
42
rm -rf tests *_tests setup.py
43
43
ln -s /usr/share/app/checkov/checkov/main.py "${{targets.destdir}}"/usr/bin/checkov
44
44
45
- # Relocate .pc files to /usr/lib/pkgconfig and create symlinks
45
+ # Relocate .pc files to /usr/lib/pkgconfig
46
46
mkdir -p "${{targets.destdir}}"/usr/lib/pkgconfig/
47
- find "${{targets.destdir}}"/usr/share/app/checkov -name "*.pc" | while read pc_file; do
48
- if [ ! -L "$pc_file" ]; then
49
- mv "$pc_file" "${{targets.destdir}}"/usr/lib/pkgconfig/$(basename "$pc_file")
50
- ln -s "${{targets.destdir}}"/usr/lib/pkgconfig/$(basename "$pc_file") "$pc_file"
47
+
48
+ find "${{targets.destdir}}"/usr/share/app/checkov -type f -name "*.pc" | while read -r pc_file; do
49
+ dname=$(printf "${pc_file}" | sed -e "s,${{targets.destdir}},,")
50
+ dname=$(dirname "${dname}")
51
+ # Adjust "pcfiledir" so that it reflects the right location of each .pc file.
52
+ if grep -q "pcfiledir" "${pc_file}"; then
53
+ sed -i -e "s,\${pcfiledir},${dname}," "${pc_file}"
51
54
fi
55
+ # Move the .pc file to /usr/lib/pkgconfig/
56
+ mv "${pc_file}" "${{targets.destdir}}"/usr/lib/pkgconfig/
52
57
done
53
58
54
59
- uses : strip
You can’t perform that action at this time.
0 commit comments