Allan
Cheers,

and what that is supposed to achieve?
also explain the separation of the build function into separate functions
The depends array that you demonstrate does not work in bash. Can you

This message also demonstrates why top posting is annoying...

Hi,

Ali H. Caliskan wrote:
Well, makepkg is script that I've studied, so it's capable of doing more
than what it should.  Here is an "bash" illustration of what PKGBUILD should
look like according to my opinion:

pkgname=('mesa', 'libgl', 'foopkg')
pkgver=('7.5.1', '7.5.1', '1.2')
pkgrel=2
pkgdesc=("Mesa 3-D graphics libraries and include files",
         "Mesa 3-D graphics library and DRI software rasterizer",
         "foo description of some foo package")
arch=(i686 x86_64)
depends=(('libgl' 'libx11>=1.2.2'
          'libxt' 'gcc-libs>=4.4.1'
          'dri2proto=2.1' 'libdrm>=2.4.13'),
         ('libdrm>=2.4.13' 'libxxf86vm>=1.0.99.1'
          'libxdamage>=1.1.1' 'expat>=2.0.1'), '')
makedepends=('glproto>=1.4.10' 'pkgconfig' 'libdrm>=2.4.13'
'libxxf86vm>=1.0.99.1' 'libxdamage>=1.1.1' 'expat>=2.0.1' 'libx11>=1.2.2'
'libxt>=1.0.6' 'gcc-libs>=4.4.1' 'dri2proto=2.1')
url="http://mesa3d.sourceforge.net";
license=('custom')
options=(!makeflags)
source=(
ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaLib-${pkgver}.tar.bz2

ftp://ftp.freedesktop.org/pub/mesa/${pkgver}/MesaDemos-${pkgver}.tar.bz2
        ftp://ftp.archlinux.org/other/mesa/gl-manpages-1.0.1.tar.bz2
...

#build() {

pkgsetup() {

basepkg = mesa

}

subsetup(libgl) {

build commands

}

subsetup(foopkg) {

build commands

}

Reply via email to