@pinguin Essentially yes. Every package is a small file with meta information and instructions on how to build the package. Sometimes it contains the actual compile process, sometimes downloading the .deb from the official site and extract it.
As an example you can see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=android-studio
Linux Geeks doing what Linux Geeks do..