The meaning of life is whatever you're doing that keeps you from killing yourself. I mean, this does seem to be the literal meaning of life. I suppose a less crude way of putting it is that the meaning of life is to seek happiness.
I think I would use contentment rather than happiness. Happiness is a transitory emotion and is not a permanent state of mind. People who are content with their lot in life and are not constantly trying to emulate others’ status and wealth are generally healthier and feel happy more often,