Provide a default static() function for packaging static libraries
Static libraries are generally kept inside -dev() packages but it is not an optimal solution[1][2], so $pkgname-static is prefered instead.
Have abuild provide a default static() function for $pkgname-static packages.
Things to keep in mind:
- modify dev() to not add static libraries if $pkgname-static is present, or not add them at all
- Add code to check for ‘.a’ and warn the user for the need of adding $pkgname-static
[1]
https://github.com/alpinelinux/aports/pull/7299\#pullrequestreview-231006771
[2]
https://github.com/alpinelinux/aports/pull/7300\#issuecomment-486952274
(from redmine: issue id 10353, created on 2019-04-26, closed on 2019-06-19)