You are not logged in.
Pages: 1
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?
what do you think, is my solution a good work around, or a better one exists?
-S.
Offline
You just need a beofre the underscore
$pkgname_$pkgver
voila
Offline
worked, thanks!
Offline
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
Pages: 1