How do I install the official Minecraft launcher?

I love playing Minecraft on my Deck, and have been using Prism Launcher for the longest time. But I don't really like it and have a few problems with it, namely installing Optifine. So I wanted to install the official launcher, only thing is: I don't know anything about Arch Linux. Whenever I thought I got somewhere, I came across a problem I didn't know how to solve. The internet didn't help much either. So please, someone explain to me how to do this.