Skip to main content
Topic: How to rebuild a package the Artix way? (Read 422 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to rebuild a package the Artix way?

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.

 

Re: How to rebuild a package the Artix way?

Reply #2
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

Code: [Select]
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.

Re: How to rebuild a package the Artix way?

Reply #3
You can use makepkg with this option
Quote
-o, --nobuild    Download and extract files only
then make your changes to the code in src/
Then makepkg with this option
Quote
-e, --noextract  Do not extract source files (use existing $srcdir/ dir)
It's also possible to apply a patch in the prepare() section of the PKGBUILD. You'd have to read up on that.



Re: How to rebuild a package the Artix way?

Reply #4
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.

Awesome! Thank you.