You are not logged in.

#1 2021-07-22 13:35:35

victrid
Member
Registered: 2021-01-04
Posts: 4

Generate split package list from source

Hello, I am trying to write a PKGBUILD script for a large software.

Like python and its pypi packages, this one contains multiple plug-in packages and I think if I can create split packages like the python and `python-xxx` packages, it would be flexible and users can install them on their demand and saves space and time.

However, users may get different sources depending on their license, containing different amount of packages, I may not get the full list of these plugins until the build is done.

It seems that in makepkg the original list of pkgname is protected and not modifiable through functions.

My current thought to this is that use the exec command to split the building and packaging stages:

build() {
...
generate_package_list
exec sh -c "makepkg -p <some generated makepkg script> --repackage && rm <some generated makepkg script>"
}

But this is kind of dirty. Could anyone hint me with some better solutions?

Offline

#2 2021-07-23 11:38:05

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 9,342

Re: Generate split package list from source

PKGBUILDs are processed by makepkg , calling makepkg from within a PKGBUILD is very likely unsupported.


There is atleast one set of aur packages that are created by a  PKGBUILD generator hat converts upstream binaries into multiple packages / PKGBUILDS.

Maybe that method will work for your case, check https://github.com/Ashark/archlinux-amdgpu-pro .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
Did you use the guided installer ? If yes, I can't help you.

(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB