Why do you think JF17 is produced in pakistan? It is merely assembled in Pakistan but made in China. If you disagree, here are the questions -
1. Who makes engines?
2. Who makes ejection seats?
3. Who makes landing gear?
4. Who wrote codes for fly-by-wire?
5. Who wrote FADEC for engine?
6. Who makes AESA/PESA radar?
7. Who makes glass windshield?
8. Who makes the radome cone?
9. Who makes the parts of airframe like fuselage, wings, tail, pylon, engine holder?
10. Who makes the display panels and processors for avionics?
11. Who makes systems like BVR missiles, EW and jammers?
When Pakistan can't even make cars, why expect to make planes?
Turkey has decent capabilities to make much more components of JF17 than Pakistan. Turkey has nothing to buy from Pakistan for JF17. All components that Turkey can't make is made in China or Russia. Turkey is better off buying them directly from these countries