You are not logged in.

#1 2007-02-09 04:20:54

PsychoTrauma
Member
Registered: 2007-01-10
Posts: 9

pkgver with a dash

How would I get around pkgver not being able to use dashes on a version number like 1.3.0-alpha4. I am looking for a method that lets me use variables to download source and make the package with dashes.

pkgver=1.3.0
?=-alpha4

I was thinking something like above would work but it's just a guess (of course the ? would be replaced with a real variable name I just don't know one atm)

Offline

#2 2007-02-09 04:24:33

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: pkgver with a dash

How about a version number like 1.3.0alpha4? Dashes are not supported in the pkgver.

Offline

#3 2007-02-09 04:36:57

PsychoTrauma
Member
Registered: 2007-01-10
Posts: 9

Re: pkgver with a dash

The above example is from audacious which I have no control over the package naming. I would need to download the source and manually rename it to make is compatible and that's why I was looking for a second variable that could handle the -alpha4. This of course would be fine for private packages but not for ones that I would like to upload to aur.

Offline

#4 2007-02-09 04:53:20

clarence
Member
From: fremantle.au
Registered: 2005-10-12
Posts: 294

Re: pkgver with a dash

from memory a forward slash should precede a dash and an underscrore for example

$pkgname-$pkgver\-alpha4

The -alpha4 part has to be left out of the $pkgver variable. Then again there is probably a very simple way to create your own variables in PKGBUILDS that someone smarter than me will know.

Last edited by clarence (2007-02-09 04:56:45)


fck art, lets dance.

Offline

#5 2007-02-09 05:34:09

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: pkgver with a dash

Isn't there an audacious package already in AUR?

Edit: just checked and the package audacious-player-svn is already in AUR.

Offline

#6 2007-02-09 06:25:47

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

Re: pkgver with a dash

PsychoTrauma wrote:

The above example is from audacious which I have no control over the package naming. I would need to download the source and manually rename it to make is compatible and that's why I was looking for a second variable that could handle the -alpha4. This of course would be fine for private packages but not for ones that I would like to upload to aur.

You don't have to use the $pkgver and $pkgname variables to download the source.

How about:

pkgver=1.3.0alpha4
_realver=1.3.0-alpha4
source=(some://url.to/$pkgname-$_realver)

Offline

#7 2007-02-09 06:48:36

clarence
Member
From: fremantle.au
Registered: 2005-10-12
Posts: 294

Re: pkgver with a dash

clarence wrote:

Then again there is probably a very simple way to create your own variables in PKGBUILDS that someone smarter than me will know.

Yeah, that'll be phrakture.....


fck art, lets dance.

Offline

#8 2007-02-09 11:07:28

PsychoTrauma
Member
Registered: 2007-01-10
Posts: 9

Re: pkgver with a dash

iBertus:

I am aware of the svn package in aur I was just using audacious as a example.

phrakture:

That was the answer I was looking for thank you.

Offline

#9 2008-05-11 00:01:32

Ilya
Member
From: Russia, Saint-Petersburg
Registered: 2007-08-16
Posts: 98

Re: pkgver with a dash

How about linuxwacom package?

Previous version was 0.8.0 => AUR "version-release" 0.8.0-1
New version is 0.8.0-1 and i don't know what to do :-\

Arch Packaging Standards:

Version tags may not include hyphens!

UPD!

Also it conflicts with The Arch package making HOW-TO - with guidelines:

...if the package writer uses a dash in their version numbering scheme, replace it with an underscore. ('0.99-10' => '0.99_10')

Just need developers blessing for this wink

pkgver=0.8.0_1
pkgrel=1

Last edited by Ilya (2008-05-11 00:17:15)

Offline

#10 2008-05-11 01:01:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: pkgver with a dash

Ilya wrote:

Just need developers blessing for this wink

pkgver=0.8.0_1
pkgrel=1

How about a TUs blessing.   Sometimes, I would just use 0.8.0.1 in that situation.  But be careful, because if they actually release a version numbered that you will run into trouble...  So the above way is safer.

Offline

#11 2008-05-11 01:07:33

Ilya
Member
From: Russia, Saint-Petersburg
Registered: 2007-08-16
Posts: 98

Re: pkgver with a dash

Allan wrote:

How about a TUs blessing.

oh, yes, sorry, thanks big_smile

Offline

#12 2008-05-11 13:07:10

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: pkgver with a dash

The benefit of using a dash is that you can use bash substitution to easily turn it into a dash:

source=(http://www.blah.com/sources/$pkgname-${pkgver/_/-}.tar.gz)

Offline

Board footer

Powered by FluxBB