[pacman-dev] Splitting packages in makepkg

Roman Kyrylych roman.kyrylych at gmail.com
Tue Jun 17 03:50:57 EDT 2008


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.

-- 
Roman Kyrylych (Роман Кирилич)


More information about the pacman-dev mailing list