default_install &&

if [[ $PKG_CONFIG_SYMLINK == y ]]; then
  local ARCH &&

  if [[ "${SMGL_COMPAT_ARCHS[1]}" == "x86_64" || "${SMGL_COMPAT_ARCHS[1]}" == "em64t" ]]; then
    ARCH="x86_64"
  else
    ARCH="i686"
  fi &&

  ln -vsf "${TRACK_ROOT}/usr/bin/pkgconf" "${INSTALL_ROOT}/usr/bin/pkg-config" &&
  ln -vsf "${TRACK_ROOT}/usr/bin/pkgconf" "${INSTALL_ROOT}/usr/bin/${ARCH}-pc-linux-gnu-pkg-config" &&
  ln -vsf "${TRACK_ROOT}/usr/share/man/man1/pkgconf.1" "${INSTALL_ROOT}/usr/share/man/man1/pkg-config.1"
fi
