You are not logged in.

#1 2005-07-14 04:21:30

hotsock
Member
Registered: 2005-06-24
Posts: 21

"build" section in PKGBUILD files.

I've noticed that the build section for some programs are different from others, I assume this means that without that proper distinctive build part, the file won't compile and a package won't be made.  So my question is how do you tell if a program needs an irregular build section?  For instance,

# $Id: PKGBUILD,v 1.80 2005/07/10 19:53:19 jgc Exp $
# Contributor: Lucien Immink <l.immink@student.fnt.hvu.nl>
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=gaim
pkgver=1.4.0
pkgrel=1
pkgdesc="A GTK+-based messaging client"
url="http://gaim.sourceforge.net"
depends=('startup-notification' 'libao'  'gnutls>=1.2.0' 'tk' 'gtkspell')
source=(http://dl.sourceforge.net/sourceforge/gaim/gaim-$pkgver.tar.bz2)
md5sums=('d7717cb771e556012ecd5b7f3bdb02ba')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr --enable-gtkspell --enable-gnutls=yes --enable-nss=no --disable-gevolution
  make || return 1
  make DESTDIR=$startdir/pkg install
  rm $startdir/pkg/usr/lib/perl5/*/$CARCH-linux-thread-multi/perllocal.pod
  mv $startdir/pkg/usr/lib/perl5/?.?.? $startdir/pkg/usr/lib/perl5/current
}

would be an irregular entry

I know there's some kind of regular build entry, but I can't find it.

reid

Offline

#2 2005-07-14 04:45:03

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: "build" section in PKGBUILD files.

oi... ummm well... that's a very hard question to answer...

what you're trying to accomplish is:
a) building the app exactly as the developer intended
b) installing it in a special place (not /usr/local like most packages like)

the one you posted... well that has to do with perl being goofy

Offline

#3 2005-07-14 05:22:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: "build" section in PKGBUILD files.

hotsock wrote:

I know there's some kind of regular build entry, but I can't find it.

If you run

# abs

as root, you'll get a template PKGBUILD:
/var/abs/PKGBUILD.proto
It has what could be called a regular build entry.

Offline

#4 2005-07-14 21:30:23

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,431
Website

Re: "build" section in PKGBUILD files.

You should also look at the makepkg tutorial on the wiki to see how it the PKGBUILD is used

Offline

Board footer

Powered by FluxBB