I think the "British" blasphemy laws were laws introduced under the Raj in order to reduce the religious violence between the Hindu and Muslim communities, diversity at the time not being India's strength (unlike Canada's today under Trudeau). They were then carried forward into the first constitution when Pakistan was formed. This constitution named Islam as the state religion and stated that no law should be passed which was "repugnant to the Koran or the Sharia".
Since then the laws have been extended, most notably by General Zia. These are three:
" However, after taking power Zia made amendments to blasphemy laws
from 1980-1984 as part of his Islamization drive. These changes were:
37295-B: Defiling, etc. of copy of Holy Qur’an. Whoever willfully defiles damages or
desecrates a copy of the Holy Qur’an or of an extract there from or uses it in any
derogatory manner or for any unlawful purpose shall be punishable with imprisonment
for life.
38295-C: Use of derogatory remarks, etc. in respect of the Holy Prophet. Whoever by
words, either spoken or written, or by visible representation, or by any imputation,
innuendo, or insinuation, directly or indirectly, defiles the sacred name of the Holy
Prophet (peace be upon him) shall be punished with death, or imprisonment for life, and
shall also be liable to a fine.
39298-A: Use of derogatory remarks, etc., in respect of holy personages. Whoever by
words, either spoken or written, or by visible representation, or by any imputation,
innuendo or insinuation, directly or indirectly, defiles the sacred name of any wife
(Ummul Mumineen), or members of the family (Ahle-bait), of the Holy Prophet (peace be
upon him), or any of the righteous Caliphs (Khulaf-e-Raashideen) or companions
(Sahaaba) of the Holy Prophet (peace be upon him) shall be punished with imprisonment
of either description for a term which may extend to three years, or with fine, or with
both."