# Exit on error:
set -e

wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
tar xf pkg-config-0.28.tar.gz
cd pkg-config-0.28
./configure --prefix= \
    --with-internal-glib
make install
cd ..
rm -rf pkg-config-0.28
rm pkg-config-0.28.tar.gz

# Fix permissions for Package Users:
chmod g+w,o+t /share/doc

exit 0
