libopkg: store checksums in binary form, use integer index for architecture