[aur-dev] [PATCH] Use bash script to parse pkgbuilds

Callan Barrett wizzomafizzo at gmail.com
Sun Jun 8 07:19:23 EDT 2008


Ok this is a test to get a bash script to parse pkgbuilds rather than
the current crazy way it's done now.

The pkgbuild is sent through a bash script (thanks Xilon) and the vars
are output so the result can be evaluated by PHP, this way nothing can
get missed and there are no bugs with what's parsed. This also gets
rid of the package contents stuff, didn't really have a choice but it
seems it's not used for anything, only wasted space. As far as I can
tell this fixes about 4 bugs currently open on the bug tracker so
aside from being a huge improvement over the current parsing stuff
(has anyone ever looked at what that parses, wow) it also fixes a lot
of bugs. The only downside to it is we can't tell whether a variable
actually exists or is just empty so no more hand holding and doing
some faux validation, we parse what we need and the rest of the
pkgbuild is up to the maintainer.

Although I'm not suggesting we apply *this* patch to the AUR I am
suggesting we apply some cleaned up form of it since it would be a
great improvement. This patch does work fine by the way it's just a
bit messy.

-- 
Callan Barrett
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-bash-script-to-parse-pkgbuilds.patch
Type: application/octet-stream
Size: 20258 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/aur-dev/attachments/20080608/52f97a15/attachment.obj>


More information about the aur-dev mailing list