You are not logged in.
Pages: 1
Hi, I have an archive stardict-english-czech-latest.tar.bz2. After unpacking there is a directory stardict-english-czech-20060620/. I don't know how to set pkgver. I tried "pkgver=`date +%Y%m%d`" (this archive is updated every day), but then there is a problem with AUR. Any idea?
Offline
Don't use the backticks. Use 'pkgver=20060620'
You might want to read the guidelines:
http://wiki.archlinux.org/index.php/Arc … guidelines
Offline
I can't use fixed date, because stardict-english-czech-latest.tar.bz2 refers always to up-to-date files. And there is always only latest archive on the server.
Offline
OK, I'll upload it to my server and make fixed date. But it's a stupid solution.
Offline
IMO, if there is any stupidity here, it can be attributed to whoever is producing this tarball. If there really are enough changes being made to justify a daily snapshot, they should provide CVS/SVN access, or at least provide access to, say, the last week or two of snapshots.
I reckon your best workaround is to update your PKGBUILD once a week i.e.
pkgver=20060621
pkgver=20060628
pkgver=20060705
etc.
Offline
OK - that last post of mine is rubbish. Sorry about that. :oops:
Here's what you do. Use
pkgname=stardict-english-czech
pkgver=latest
and in the build(), use
cd $startdir/src/$pkgname-`date +%Y%m%d`
It's still not perfect - it will fail if the package is not built on the same day as the tarball is downloaded, or if it's built before 03:48 in the morning (and then there's timezones as well ) - but it should work for most users most of the time. If you're putting it in the AUR, include a short explanation in your comments.
The formats above are permitted - backticks cannot be used to set PKGBUILD variables like pkgver etc, but they can be used within the build() function.
Offline
in the build(), use
cd $startdir/src/$pkgname-`date +%Y%m%d`
How about
cd $startdir/src/$pkgname-[0-9]*
There is probably only one directory with that name in $startdir/src, so you could even drop the [0-9].
Offline
How are md5 sums going to work with something like this? Will the user have to update them?
Offline
The AUR requires the md5sum field, but in cases like this, it should be left blank - another less-than-perfect solution, but it's unavoidable. There isn't really any point in the user generating them - just leave it blank, makepkg will complain, but it will still build it.
Offline
Yesterday I spoke with author and he decided to make stable directory on his server. So it will be sufficient, when I sometimes update PKGBUILD in AUR.
Offline
Pages: 1