If that package is installed as root it has access to `/var`.
If it's installed by a user (who can neither write to `/var` nor `/usr`) the default procedure is to set `--prefix=$HOME/somedir` in the `configure` script. Or you provide other means to set the directory to a location the user has write access to.