You are not logged in.

#1 2008-10-24 15:53:33

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

pkgbuild help[SOLVED]

Hey, I trying to update the latest version of ardour on my system but the release is ardour-2.6-4004.tar.bz2.
I edit the the PKGBUILD from extra and followed the wiki to change the
pkgver to look like:
pkgver=2.6_4004 instead of
pkgver=2.6-4004 because hyphens are not allowed.

When I run makepkg -i, it tries to down a package ardour-2.6_4004.tar.bz2, not the real package ardour-2.6-4004.tar.bz2.

Can someone help with how to edit the PKGBUILD?
Thanx

Last edited by funkmuscle (2008-10-24 16:07:29)

Offline

#2 2008-10-24 15:57:41

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: pkgbuild help[SOLVED]

There are different ways to do it, but you can just replace all the $pkgver references with 2.6-4004 directly.  Change the 2 lines that originally called $pkgver to this:

source=(http://ardour.org/files/releases/${pkgname}-2.6-4004.tar.bz2 \

...

cd ${startdir}/src/${pkgname}-2.6-4004

...

Last edited by creslin (2008-10-24 16:04:07)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#3 2008-10-24 16:07:02

funkmuscle
Member
Registered: 2006-02-09
Posts: 534

Re: pkgbuild help[SOLVED]

bingo!!! thanx, it worked.

Offline

#4 2008-10-24 17:08:23

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: pkgbuild help[SOLVED]

You can also take advantage of bash's string manipulation features and write:

${pkgver//_/-}

wherever you want underscores to be replaced by hyphens.

Offline

Board footer

Powered by FluxBB