How to rebuild a package the Artix way? 17 January 2023, 17:34:18 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. Last Edit: 17 January 2023, 18:17:18 by TheExplorer 1 Likes
Re: How to rebuild a package the Artix way? Reply #1 – 17 January 2023, 18:44:17 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.gitCode: [Select]git clone https://gitea.artixlinux.org/packagesL/linux-zen.gitcd linux-zen/trunk Rest of the procedure should be the same. 1 Likes
Re: How to rebuild a package the Artix way? Reply #2 – 17 January 2023, 19:19:47 Quote from: gripped – on 17 January 2023, 18:44:17Go 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.gitCode: [Select]git clone https://gitea.artixlinux.org/packagesL/linux-zen.gitcd 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 – 17 January 2023, 19:31:57 You can use makepkg with this optionQuote -o, --nobuild Download and extract files onlythen make your changes to the code in src/Then makepkg with this optionQuote-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. 1 Likes
Re: How to rebuild a package the Artix way? Reply #4 – 17 January 2023, 20:12:01 Quote from: gripped – on 17 January 2023, 19:31:57You 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. 1 Likes