Don't write garbage to %FEATURES% in _alpm_local_db_write
Add features support in makepkg

Read features array in PKGBUILD and write it to PKGINFO.

No checking is done, dependencies may use non-existing features (but
pacman will warn about it though). Two reasons :
 * I hate shell script :)
 * It probably belongs to namcap anyway.