I live in the jungle. If i want to preserve meat, and i just put it in salt and let it sit? will this work for any meat? i would still dry it out in the sun, but then put salt all over it.

I have like ahalf a pigs worth of meat i need to preserve. How long could i expect this to last in jungle heat, provided i put it in the right container?