[aur-general] Small regexp to update md5 in PKGBUILD
Hi, This script updates or inserts md5sum just run this script in PKGBUILDs dir. It works for my packages at least) It is better than makepkg -g >>PKGBUILD because it inserts md5 just before build() function.
2009/10/9 Sergej Pupykin <pupykin.s@gmail.com>
Hi,
This script updates or inserts md5sum just run this script in PKGBUILDs dir.
It works for my packages at least)
It is better than
makepkg -g >>PKGBUILD
because it inserts md5 just before build() function.
What script? :) Mathias
Mathias Burén wrote:
2009/10/9 Sergej Pupykin <pupykin.s@gmail.com>
Hi,
This script updates or inserts md5sum just run this script in PKGBUILDs dir.
It works for my packages at least)
It is better than
makepkg -g >>PKGBUILD
because it inserts md5 just before build() function.
What script? :)
Mathias
He said it was a small script....You have to look close
Isn't it a simple sed + makepkg -g >> PKGBUILD combination ? Best Regards, Laszlo Papp
Yes, one just needs a function in his bashrc with a sed one-liner :)
Sergej Pupykin wrote:
Hi,
This script updates or inserts md5sum just run this script in PKGBUILDs dir.
It works for my packages at least)
It is better than
makepkg -g >>PKGBUILD
because it inserts md5 just before build() function.
I guess your attachment got scrubbed. Also, see: http://bugs.archlinux.org/task/15051
2009/10/9 Allan McRae <allan@archlinux.org>:
Sergej Pupykin wrote:
Hi,
This script updates or inserts md5sum just run this script in PKGBUILDs dir.
It works for my packages at least)
It is better than
makepkg -g >>PKGBUILD
because it inserts md5 just before build() function.
I guess your attachment got scrubbed. Also, see: http://bugs.archlinux.org/task/15051
So if anyone wants to actually implement Allan's request : "Now as for the implementation. A couple of things I think could be improved. First, a PKGBUILD can specify multiple hashes which with the above would result in multiple copies of whatever is generated by "makepkg -g". So each hash should be updated separately. That also means not using the "makepkg -g" output but having to generate it." The right behavior would indeed to use the hashsums already defined in the pkgbuild. Actually makepkg -g could do that too. First use the hashsums already defined in the pkgbuild. If no hashsum is defined, use makepkg.conf setting for integrity check.
I guess your attachment got scrubbed. Also, see: http://bugs.archlinux.org/task/15051
Yes, it seems. http://arch.pp.ru/~sergej/files/update-md5.pl.gz
participants (7)
-
Allan McRae
-
Baho Utot
-
Laszlo Papp
-
Mathias Burén
-
Ray Rashif
-
Sergej Pupykin
-
Xavier