Believe he got 2.25% of the takings for the first. World wide box office was £786m. That makes about £17m. Not a bad fee for 1977
Edit. Actually, think he got less than that. He got 2.25% of what George Lucas got in royalties which was a fifth of the take. So he made about $3.3m which...