libpacman: Create helper function to get a pmtranspkg_t proper name, and provide some cmp/detect function accordingly.