You are not logged in.

#1 2005-10-02 18:58:15

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

$pkgname_$pkgver.tar.gz ?!

I am trying to package oroborus window manager and a couple of accompanying utilities, and the source tarball isn't named according the established way, but like in the subject.

I made this simple PKGBUILD:

# Contributor : Stavros Giannouris <stavrosg2002@freemail.gr>
pkgname=oroborus
pkgver=2.0.15
pkgrel=1
pkgdesc="A minimalistic window manager"
url="http://www.oroborus.org/?node=Main"
license=""
depends=('xorg')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.oroborus.org/debian/dists/sid/main/source/x11/$pkgname_$pkgver.tar.gz)
md5sums=('c331253852c050b3f1d1f0d823a31496')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

But when I try to build it, I get the following:

[stavrosg@gondolin oroborus]$ makepkg
==> Entering fakeroot environment
==> Making package: oroborus 2.0.15-1 (Sun Oct 2 21:50:36 EEST 2005)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Downloading 2.0.15.tar.gz
--21:50:37--  http://www.oroborus.org/debian/dists/sid/main/source/x11/2.0.15.tar.gz
           => `2.0.15.tar.gz'
Resolving www.oroborus.org... 213.239.207.20
Connecting to www.oroborus.org|213.239.207.20|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
21:50:37 ERROR 404: Not Found.

==> ERROR: Failed to download 2.0.15.tar.gz
==> Aborting...

If I put the full address (without variables) in the source field, it works.

This is probably a makepkg bug, right? smile
what do you think, is my solution a good work around, or a better one exists?

-S.

Offline

#2 2005-10-02 19:20:35

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: $pkgname_$pkgver.tar.gz ?!

You just need a  beofre the underscore

$pkgname_$pkgver

voila

Offline

#3 2005-10-02 19:47:32

stavrosg
Member
From: Rhodes, Greece
Registered: 2005-05-01
Posts: 330
Website

Re: $pkgname_$pkgver.tar.gz ?!

worked, thanks! smile

Offline

#4 2005-10-03 05:34:01

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

Re: $pkgname_$pkgver.tar.gz ?!

yes, the underscore is a valid variable name... in cases like this, I usually do:

${pkgname}_${pkgver}

which will always work no matter that the char is (no need to escape) - so if you're ever unsure, just try it this way

Offline

Board footer

Powered by FluxBB