You are not logged in.

#1 2010-05-15 18:05:54

tri1976
Member
Registered: 2009-09-07
Posts: 152

determine system architecture in pkgbuild

I would like to have different variable values based on system architecture.  For example, if arch=i686 then source=http://download_32bit_file else source=http://download_64bit_file.  I have seen this kind of thing done in some of the PKGBUILDs, but could not find them any more.  Please help.

Offline

#2 2010-05-15 18:11:55

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: determine system architecture in pkgbuild

I think the kernel PKGBUILD contains an example of how you could achieve that.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-05-15 18:32:19

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: determine system architecture in pkgbuild

The nvidia package does this as well.

Offline

#4 2010-05-16 00:23:58

tri1976
Member
Registered: 2009-09-07
Posts: 152

Re: determine system architecture in pkgbuild

I found it, thank you.  In case any one wants to know, the variable for system architecture is "$CARCH"

Offline

Board footer

Powered by FluxBB