[pacman-dev] Splitting packages in makepkg

Sergej Pupykin pupykin.s at gmail.com
Fri Jun 13 12:24:42 EDT 2008


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




More information about the pacman-dev mailing list