[arch-general] Question about split packages

Jan de Groot jan at jgc.homeip.net
Fri Aug 7 13:23:18 EDT 2009


On Fri, 2009-08-07 at 18:03 +0100, Magnus Therning wrote:
> I've been playing around with split packages and it's a nice feature, it'll
> make some packaging tasks a lot easier.  Anyway, there's one thing I can't
> find out, is it possible to have one package depend on another one that's
> built from the same sources?
> 
> Basically something like this:
> 
> pkgname=('foo' 'bar')
> ...
> 
> build () {
> ...
> }
> 
> package_foo () {
> ...
> }
> 
> package_bar () {
> depends=('foo')
> ...
> }
> 
> /M

That works yes, see libgsf and svn trunk for poppler for examples. Note
that you will need pkgbase=foobar also. You will also have to replace
any $pkgname with $pkgbase in the build function and the source urls
when you start splitting packages.



More information about the arch-general mailing list