[pacman-dev] Splitting packages in makepkg
Allan McRae
mcrae_allan at hotmail.com
Tue Jun 17 08:18:02 EDT 2008
Roman Kyrylych wrote:
> 2008/6/16 Aaron Griffin <aaronmgriffin at gmail.com>:
>
>> On Fri, Jun 13, 2008 at 11:24 AM, Sergej Pupykin <pupykin.s at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I like following idea:
>>>
>>> PKGBUILD
>>> ------------------
>>> pkgname=foobar
>>> pkgver=1.0
>>> pkgrel=1
>>> subpackages=(dev doc)
>>>
>>> ....
>>>
>>> build() {
>>>
>>> .....
>>>
>>> make DESTDIR=$startdir/pkg install
>>> ...
>>> make DESTDIR=$startdir/pkg-dev install
>>> ...
>>> make DESTDIR=$startdir/pkg-doc install
>>> }
>>> ---------------
>>>
>>> According to subpackages array makepkg creates 3 dirs:
>>> - $startdir/pkg (as usually)
>>> - $startdir/pkg-dev
>>> - $startdir/pkg-doc
>>>
>>> PKGBUILDs build function install all stuff into them
>>>
>>> And then, makepkg creates 3 packages:
>>>
>>> $pkgname-...pkg.tar.gz
>>> $pkgname-dev-...pkg.tar.gz
>>> $pkgname-doc-...pkg.tar.gz
>>>
>> FTR I like this idea too. Just setup some way to use $pkgdir/foo/
>> instead of $pkgdir (that's what the subpackages=() array does in the
>> above example), and then the rest is free-form. It's the simplest IMO.
>>
>
> It's my favourite too.
>
>
This is pretty much what I suggested in one of the bug reports about
this. But, the problems I now have with this method are:
1) where do you define the different pkgdesc for each package
2) what if there is no obvious "base" package?
More information about the pacman-dev
mailing list