2008/6/16 Aaron Griffin <aaronmgriffin@gmail.com>:
On Fri, Jun 13, 2008 at 11:24 AM, Sergej Pupykin <pupykin.s@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 (Роман Кирилич)