Hello, guys. I'm still pretty new to Arch/Artix and would like to apply some patch to the source and rebuild the package.
As I see in the Arch Wiki, there's some 'asp' tool for fetching the sources, but can't find it in the Artix repos.
What are the steps to rebuild the package (from repos) from source?
Thank you in advance.
Go to https://gitea.artixlinux.org/explore/repos , search for the package you want and click on it.
Copy the git URL top(ish) right eg https://gitea.artixlinux.org/packagesL/linux-zen.git
git clone https://gitea.artixlinux.org/packagesL/linux-zen.git
cd linux-zen/trunk
Rest of the procedure should be the same.
Umm, ok, thanks. How do I apply my patch in the middle of the process? Sorry for being a noob.
You can use makepkg with this option
then make your changes to the code in src/
Then makepkg with this option
It's also possible to apply a patch in the prepare() section of the PKGBUILD. You'd have to read up on that.