makepkg: add libdepends support
commit73d5eb1edf03e628ca1d3a09168e4e940adea914
authorFlorian Pritz <bluewind@xssn.at>
Wed, 10 Feb 2010 16:11:37 +0000 (10 17:11 +0100)
committerFlorian Pritz <bluewind@server-speed.net>
Wed, 1 Jun 2011 19:34:16 +0000 (1 21:34 +0200)
tree0b85bc1844565318614f9bd310e85701d5535fd5
parent79f1a3c4a17223af2bfe35802c50e1ae431d25b5
makepkg: add libdepends support

The user adds libaries to the depends array without a version. These
must end with .so.
Example: depends=(glibc libc.so)

find_libdepends() looks for ELF files (not symlinks because these could
point outside of pkgdir) in $pkgdir, extracts the library sonames the
binary links to and outputs depends seperated by spaces.
This list contains all libraries needed by the package.
Example: libfoo.so=3-64

write_pkginfo() only keeps .so depends 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