summaryrefslogtreecommitdiff
path: root/patches/source/pkg-config/doinst.sh
blob: 06ebcafc059834ca7a1d61440ab580441f7837d5 (plain)
1
2
3
4
5
6
7
8
9
# 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