Pakistan should definitely focus on setting up/modernizing the industries required to mine and process as well as explore for new mines ASAP. If Pakistan becomes price competitive in this regard, if/when some level of stability opens up in parts of Afghanistan, Pakistan will be well positioned to do the processing work, while sending its own companies to help with the mining.
If there is stability in Afghanistan, a Russian pipeline of oil/gas to Pakistan and the ports of Gwadar or Karachi would allow Pakistan to not only have its own needs meet from another source but earn from the transit trade. Although, this (new Russian competition) may not be appreciated by the gulf Arab or Iranian neighbors, so the ramifications of making such a deal with Russia will have to be thought out. With the African continent expecting population to keep outpacing the rest of the world in growth (and by extension demand for oil/gas may continue to grow), a Russian pipeline to a port on the Indian Ocean coast, makes a lot of sense for the Russians. If the oil is given to Pakistan in lieu of payment for the transit, it can help fuel growth in the petrochemical and pharmaceutical industries of Pakistan.
Stability could also mean, Russian goods transported from factories deep in Russia, not overland to the European ports and then to Africa, but through Central Asia through Afghanistan and Pakistan on rail, to Karachi or Gwadar to Africa. If Pakistan can modernize and ramp up its agricultural output, it can send back over the same rails value added food products to Russia and Central Asia and onwards to Europe if it makes financial sense.
The African Market and transit trade/value added industries are areas Pakistan and Russia can cooperate.