EDIT: I did read the postscript and instead of building as a user in their own directory, you mention building it /var/tmp as root. That's still not the answer I was getting at
]]>Woah... there are a bunch of little things wrong with that post. I'll just correct you here.
You don't need to touch abs at all to build packages. 99.99% of the packages I build for myself I do in ~/arch/working (it's an example).
Because you don't need abs, you don't need cvsup.
Did you read the PS?
Though, I wasn't aware that makepkg looks for fakeroot now.
]]>You don't need to touch abs at all to build packages. 99.99% of the packages I build for myself I do in ~/arch/working (it's an example).
Because you don't need abs, you don't need cvsup.
You don't need to explicitly run fakeroot, makepkg looks for the config option and then runs itself in a fakeroot session already.
]]>#pacman -S cvsup fakeroot
cvsup - allows you to connect to the repos and download the latest abs
fakeroot - allows you to build packages from your non-root account
Next download the current abs tree. It defaults to "/var/abs"
#abs
Then make a new directory for your new package
$cd /var/abs/local
$mkdir cbb
Copy the contents of the pkgbuild into a "PKGBUILD" file. Then use fakeroot to run makepkg and build your Arch package.
$fakeroot makepkg
Once it's done building you should have a newly created cbb pckage under /var/abs/local/cbb. Use pacman to install it.
#pacman -A cbb-0.9.2-1.pkg.tar.gz
That's it.
--
PS if you don't want the abs tree you can just build it in a temporary directory. /var/tmp is good for this. copy the contents of the pkgbuild to a "PKGBUILD" file under /var/tmp and then run 'makepkg' as root.
#makepkg
--
PPS I can also email you the Arch package if you want. Just message me with your email account and I will email you the file.
I'm a newby, I'm not sure how to run your script. I do know how to do the normal "pacman -S xmms", though. Should I wait until your package is part of pacman? I'm not very good at fixing things yet(!).
thx!
]]>pkgname=cbb
pkgver=0.9.2
pkgrel=1
pkgdesc="A personal finance manager"
url="http://cbb.sourceforge.net/index.html"
depends=('perl' 'tcl' 'tk')
source=(http://cbb.sourceforge.net/down/$pkgname-$pkgver.tgz)
md5sums=('924c3388436ada4c1fcc7411cc2bed8d')
build() {
cd $startdir/src/$pkgname-$pkgver
mkdir $startdir/pkg/usr
mkdir $startdir/pkg/usr/bin
sed -i "s|/usr/local/bin|$startdir/pkg/usr/bin/cbb|g" $startdir/src/$pkgname-$pkgver/configure
sed -i "s|/usr/local/lib/cbb|$startdir/pkg/usr/lib/cbb|g" $startdir/src/$pkgname-$pkgver/configure
./configure
make || return 1
}