Testing an updated approach to package splitting in makepkg
lists.archlinux.org·4h·
Discuss: r/archlinux
Flag this post

Hi all, The original package splitting approach in makepkg was aligned to the KDE packaging approach (at the time) where each component had its own “make install-foo” target. In practice, distributions want to split a wider variety of packages that do not fit this mould, and various hacks have arisen. I have implemented a second approach to package splitting that can be used in parallel to the current one. A PKGBUILD can provide a stash() function that is run (in fakeroot) between building and packaging. This function will typically do the full install of the built software into the $stashdir directory. I.e. run a command similar to make DESTDIR=$stashdir install. Each package_foo() function can then include a list of files that are transferred from the stash into the pack…

Similar Posts

Loading similar posts...