http://www.enworld.org/showthread.php?t=171552
That is the last best archer build thread... Here's my build, slightly modified for your purposes.
Here's a potential build based on 32pt buy.
Human, Rng2, Ftr6, Exotic Weapon Master 1, Peerless Archer 3
Str: 18 (14base+4item)
Dex: 23 (16base+4item+3levels)
Con: 18 (16base+2item)
Int: 10
Wis: 12
Cha: 8
feel free to tank the int down to 8 or wis to 10... I prefer not to be so stupid though at 32pt buy... or switch the strength and con if that's your taste.
Feats:
Point Blank Shot (Human)
Precise Shot (1)
Track (Rng1)
Rapid Shot (Rng2)
Exotic Weapon Proficiency [Greatbow] (Ftr1)
Weapon Focus [Greatbow] (3)
Quickdraw (Ftr2)
Manyshot (6)
Improved Rapid Shot (Ftr4)
Improved Critical [Greatbow] (Ftr6)
Far Shot (9)
Improved Precise Shot (12)
Class Abilities:
Close Quarters Ranged Combat (does not provoke AoOs for using Greatbow in threatened squares)
Ranged Sneak Attack (1d6) (only usable with ranged weapons)
Power Shot (power attack for ranged attacks... -1 to hit for +1 to damage, capped at base attack)
Skill Points: 35rng+18ftr+3ewm+9pa = 65
Craft (weaponsmithing) : 3
Craft (bowyer) : 10
Tumble (cc) : 6
Jump : 5
Survival: 5
Spot: 5
Listen: 5
Move Silently: 5
15 to spread around...
Possible Items:
Belt of Giant Strength +4
Gloves of Dexterity +4
Amulet of Health +2
Boots of Speed
Mithral Chain Shirt +3
+1 Holy Migthy (+4) Composite Greatbow of Shock
You may want to drop shock from the bow to get a bit more cash for defensive or utility items.
HP: 121 (73base + 48con)
AC: 24 (10+6dex+7armor+1haste)
Hasted Full Attack: +21/+21/+21/+16/+11 at 195' range for 1d10+5+2d6holy+1d6electricity with 19-20/x3 with opponents gaining no benefit of any cover or concealment short of total... add power shot to taste
Note, that you also have full base attack, 18 strength, and quickdraw.... so you can whip out a melee weapon on the fly if you need to threaten a foe (or there's always improved unarmed strike, monk's belt, spiked gauntlets.. etc). For future levels, I like 2 levels of Deepwood Sniper to add to your critical multiplier, but apart from that, I would finish with fighter levels to get more feats. (Dodge, Mobility, Shot on the Run... or Weapon Spec, Ranged Weapon Mastery... or another feat tree to diversify, perhaps mounted combat, or power attack, cleave).
Your party spellcasters can always help out with GMW and/or various energy substituted flame arrows on your ammo. You also want to pick up a quiver of ehlonna and 20 or so arrows of the various materials (silver, cold iron, adamantine) to supplement your regular stock.
Edit: note... zero actions spent buffing.... well, zero non-free actions spent buffing