James Bond star Daniel Craig gave a community hub previously at risk of eviction £50,000 to help keep it in its current home.