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.