makepkg: add libprovides support
commit79f1a3c4a17223af2bfe35802c50e1ae431d25b5
authorFlorian Pritz <bluewind@xssn.at>
Wed, 10 Feb 2010 16:07:30 +0000 (10 17:07 +0100)
committerFlorian Pritz <bluewind@server-speed.net>
Fri, 27 May 2011 11:29:22 +0000 (27 13:29 +0200)
tree8e49cab3969129997253312ad8fc000fef6f8762
parent70cf4546d6d35ef9ef2751f37853cde679c88aa7
makepkg: add libprovides support

The user adds libaries to the provides array without a version. These
must end with .so.
Example: provides=(readline libreadline.so)

find_libprovides() looks for .so files (not symlinks because these could
point outside of pkgdir) in $pkgdir, extracts the library soname (ld
links the binary to this name) and outputs provides seperated by spaces.
This list contains all libraries provided by the package.
Example: libfoo.so=3-64

write_pkginfo() only keeps .so provides with version information and warns
the user about unneded ones.

Support-by: Thomas Bächler <thomas@archlinux.org>
Support-by: Christoph Schied <Christoph.Schied@uni-ulm.de>
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
scripts/makepkg.sh.in