pkgsubmit.php: Parse .AURINFO metadata
commit5a1137363cb358593a64e0e6d0b0adeb1a9514ff
authorLukas Fleischer <archlinux@cryptocrack.de>
Tue, 5 Mar 2013 10:49:09 +0000 (5 11:49 +0100)
committerLukas Fleischer <archlinux@cryptocrack.de>
Fri, 8 Mar 2013 23:33:15 +0000 (9 00:33 +0100)
treeacf4780a3fa3c8e500569b7d2b8cf71f5fedc6dd
parent1f27b2fb9bcb61f4ea66dd15b69565428b36f639
pkgsubmit.php: Parse .AURINFO metadata

This allows for adding a metadata file called ".AURINFO" to source
tarballs to overwrite specific PKGBUILD fields. .AURINFO files are
parsed line by line. The syntax for each line is "key = value", where
key is any of the following field names:

* pkgname
* pkgver
* pkgdesc
* url
* license
* depend

Multiple "depend" lines can be specified to add multiple dependencies.

This format closely matches the .PKGINFO format that is used for binary
packages in pacman/libalpm. It can be extended by field name prefixes or
sections to support split packages later.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
web/html/pkgsubmit.php