You are not logged in.
Hi all,
I am currently trying to get the mesure PKGBUILD updated (or perhaps rather to build a mesure-snapshot package).
My problem is that the download is generated from a vcs page: http://news.nopcode.org/miau/pvc.cgi
There, the download can be had when clicking on a button which sends me to http://news.nopcode.org/miau/pvc.cgi?dist=mesure
But - when I enter that into the source variable of my PKGBUILD, it downloads a .tar.gz file (correct size/content) but has it named as 'pvc.cgi?dist=mesure'
How can I tell it to save it as 'mesure-0.7.6.tar.gz'?
Or shall I rename it in the build function? (But then it won't get extracted automatically, will it?)
Thanks for any insights
Last edited by awagner (2008-02-21 12:46:53)
Offline
To add a bit of meat to that, here's the -- so far rather unelegant -- PKGBUILD:
# Contributor: Andreas Wagner <A dot Wagner at stud dot uni-frankfurt dot de>
pkgname=mesure
pkgver=0.7.6
pkgrel=1
pkgdesc="This tool allows to mesure how a file grows, network transfer, disk free, memory usage, stdin flux, etc. It supports ETA and progressbar output too."
arch=('i686' 'x86_64')
url="http://nopcode.org/blog/mesure.html"
license="GPL"
depends=(gmp libpcap)
options=(docs)
source=(http://news.nopcode.org/miau/pvc.cgi?dist=mesure)
md5sums=('c47cd95bd77bdfc1b2508f8f788b53d9')
build() {
cd $startdir/src
mv pvc.cgi?dist?mesure $pkgname-$pkgver.tar.gz
tar -xvvzf $pkgname-$pkgver.tar.gz
cd $startdir/src/${pkgname}-${pkgver}
./configure --prefix=/usr --install=/bin/install
make || return 1
install -D -s $startdir/src/$pkgname-$pkgver/src/mesure $startdir/pkg/usr/bin/mesure
install -D -m 644 $startdir/src/$pkgname-$pkgver/doc/mesure.1 $startdir/pkg/usr/share/man/man1/mesure.1
install -D -m 644 $startdir/src/$pkgname-$pkgver/doc/mesure.txt $startdir/pkg/usr/share/doc/mesure/mesure.txt
install -D -m 755 $startdir/src/$pkgname-$pkgver/doc/mesure.wmii $startdir/pkg/usr/share/doc/mesure/mesure.wmii
}
# vim:set ts=2 sw=2 et:
Offline
the only improvement you could do would be to replace:
mv pvc.cgi?dist?mesure $pkgname-$pkgver.tar.gz
tar -xvvzf $pkgname-$pkgver.tar.gz
by:
tar -xvvzf 'pvc.cgi?dist?mesure'
That's probably the best you can do. I have the same problem with my blobwars package.
Offline
ok. thanks a lot for the help anyway.
FWIW, I have just noticed a typo in my posting above: it should be 'pvc.cgi?dist=mesure' in the mv line, not '...dist?mesure'
Offline
Hey, it DID extract automatically!:
...
100%[============================================>] 26.133 114K/s in 0,2s
2008-02-22 13:10:22 (114 KB/s) - »pvc.cgi?dist=mesure« gespeichert [26133/26133]
==> WARNUNG: Integritäts-Prüfungen (md5) fehlen oder sind unvollständig.
==> Entpacke Quellen...
-> bsdtar -x -f pvc.cgi?dist=mesure
==> Betrete fakeroot-Umgebung ...
==> Beginne build()...
...
and so on, with success. Cool 8)
Offline