diff options
Diffstat (limited to 'source/d/pkg-config/doinst.sh')
-rw-r--r-- | source/d/pkg-config/doinst.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/d/pkg-config/doinst.sh b/source/d/pkg-config/doinst.sh index c8adcd31..06ebcafc 100644 --- a/source/d/pkg-config/doinst.sh +++ b/source/d/pkg-config/doinst.sh @@ -1,6 +1,9 @@ -if [ ! -L usr/share/pkgconfig ]; then - mkdir -p usr/lib/pkgconfig 2> /dev/null - mv usr/share/pkgconfig/* usr/lib/pkgconfig 2> /dev/null - rmdir usr/share/pkgconfig 2> /dev/null - ( cd usr/share ; ln -sf ../lib/pkgconfig . 2> /dev/null ) +# Break the /usr/share/pkgconfig symlinks, if it exists. +# Then move the .pc files to the standard location. +if [ -L usr/share/pkgconfig ]; then + rm usr/share/pkgconfig + mkdir -p usr/share/pkgconfig + grep usr/share/pkgconfig var/log/packages/* | grep '\.pc$' | cut -f 2 -d : | cut -f 4 -d / | while read movefile ; do + mv usr/lib/pkgconfig/$movefile usr/share/pkgconfig 1> /dev/null 2> /dev/null + done fi |