My issue here isn't so much that I can't understand what's being said overall, it's more the grammar definition.
The context is: おれの財宝か?欲しけりゃくれてやるぜ...
I can gather than it means "My treasure? If you want it I'll give it to you" but the けりゃ part of 欲しい how does it change the meaning of...