Use crate_id instead of pkgid/link

I don't know where `COMPRESSED_RGBA_BPTC_UNORM` etc. come from.