You are not logged in.

#1 2010-08-25 05:59:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

[solved] Multiple hyphens in PKGBUILD source directive

Moderator: If this is not the correct forum please feel free to move this as appropriate.

Hello,

I have been trying my hand at creating PKBUILDS and submitting them to ABS.  This problem has me stumped.

I have a source file that is named hpgcc-2.0-sp2-linux.tar

I call the pkg hpgcc, and the version 2.0_sp2.  The architecture I ignore since this is a PKGBUILD for (duh) Linux

I create the source directive like:

source=(http://www.hpcalc.org/hp49/pc/programming/$pkgname-${pkgver/_/-}-linux.tar.bz2) 

So far, so good.  makepkg runs and builds a package, pacman -U installs it, no problem.
Clean the directory, archive it, uploaded to AUR.  Okay.  Download the tarbell to another computer, makepkg and install, no problem.

The issue is that the AUR page on the website munges the source file name:

 hpgcc 2.0_sp2-2
http://hpcalc.org
gcc C Compiler for HP 48,49,50 Calculators

unsupported :: devel  (change category)
Maintainer: ewaller
Votes: 0

License: GPL

Last Updated: Wed, 25 Aug 2010 05:17:02 +0000
First Submitted: Mon, 23 Aug 2010 06:21:13 +0000

Tarball :: Files :: PKGBUILD
Sources
http://www.hpcalc.org/hp49/pc/programming/hpgcc-2.0_sp2/_/-}-linux.tar.bz2

I don't think this is right -- a cursory look at other ABS pages all looked correct.  Am I missing something, is this a bug in the ARCH ABS site? or is this a just don't care?

Last edited by ewaller (2010-08-25 15:15:15)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#2 2010-08-25 07:01:37

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [solved] Multiple hyphens in PKGBUILD source directive

This happens because AUR doesn't source PKGBUILD (for security reasons). You can leave it as it is or hardcode the source url.

Last edited by Snowman (2010-08-25 07:06:23)

Offline

#3 2010-08-25 15:14:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: [solved] Multiple hyphens in PKGBUILD source directive

Cool.

I'll not worry about it for now, and will probably just go with a hard coded address next time around.

Thanks Much.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB