You are not logged in.

#1 2009-08-25 16:49:44

eric
Member
From: under heaven
Registered: 2004-02-11
Posts: 117

Can I makepkg only 1 pkg in a PKGBUILD with split packages?

Hello,

How can I build only 1 of the split packages in a PKGBUILD file, without editing the PKGBUID file?
Is there or will there be a command line option for makepkg to only build 1 pkg in a split pkgs PKGBUILD?

My situations is:
I have a self-compiled kernel and I want to use virtualbox (for retouching holiday pics with photoshop). This means that the virtualbox module provided by Arch (pacman -S virtualbox-module) will not work and so I have to build this myself. But since pacman-3.3 virtualbox-module and virtualbox-ose are inside the same PKGBUILD.

Offline

#2 2009-08-25 17:58:13

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Can I makepkg only 1 pkg in a PKGBUILD with split packages?

now you can't. is on todo list


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-08-25 18:12:51

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Can I makepkg only 1 pkg in a PKGBUILD with split packages?

The build() function contains the code to build all packages. You can remove the packages you don't want to build from the pkgname array, but as the build() is shared between all packages, it will build them anyways.

Offline

#4 2009-08-25 22:38:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Can I makepkg only 1 pkg in a PKGBUILD with split packages?

wonder wrote:

now you can't. is on todo list

yes it is...  but given that most of the time is spent in the build() step, I doubt it will save much time for most packages.

Offline

Board footer

Powered by FluxBB