create an appropriately sized pkghash