+
+ # Create an env.d file that will append the currently-selected
+ # Postgres's pkgconfig path to the PKG_CONFIG_PATH environment
+ # variable. See bug #512236.
+ local pcp="${EPREFIX}/usr/$(get_libdir)/postgresql/pkgconfig"
+ echo "PKG_CONFIG_PATH=\"${pcp}\"" > "${T}"/99postgresql
+
+ doenvd "${T}"/99postgresql