makepkg: rework libprovides
commit5bbe34293258c20afa636ca8f6546640af28678a
authorAllan McRae <allan@archlinux.org>
Sat, 9 Jul 2011 11:52:01 +0000 (9 21:52 +1000)
committerDan McGee <dan@archlinux.org>
Mon, 20 Feb 2012 22:54:19 +0000 (20 16:54 -0600)
tree9c519d617e99c4253d447979b6b263f81f56e344
parentf8892b9d087f5c60de663d107643085deaba727b
makepkg: rework libprovides

This reworks the implmentation of libprovides for the following
benefits:
 - Moves functionality from write_pkginfo() to find_libprovides()
 - Only calculates the version for libraries specifically requested
   and not all libraries. This has the disadvantage of running find
   over the $pkgdir for as many libraries as needed, but is unlikely
   to be an issue due to caching.
 - The order of the provides array in the PKGBUILD is kept in the
   package
 - There are more warning messages when things fail and those that
   were there are no longer errors (as I do not think failure of
   libprovides should result in complete packaging failure)
 - It is now modular so can be easy extended to other library types
   other than ELF *.so.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in