Convert package into static library. How?

Hello all!

Is there any way to convert package into static library (*.a)?