I believe it should be sufficient to:
- Incorporate your business outside the EU.
- Have no offices in the EU.
- Reside outside the EU.
- Not visit the EU (?).
- Not employ any EU residents.
- Not target any advertisements about your business to EU countries.
- Only offer your site in your local language and/or English.
- Don't register your site in an EU TLD.
At that point, as far as I can tell (and of course I'm not a lawyer), you have no EU presence and even the GDPR admits that it doesn't apply to you. Presumably these conditions apply to the vast majority of small businesses where dealing with random claims of extra-territorial jurisdiction is just a waste of time.
This being HN, I'm sure somebody will be ecstatic to correct me if the above is wrong.