And I think you also need this open source of electrum before you can start making your own lightweight wallet you must study first their open source files here
https://github.com/spesmilo/electrumAnd I think it's not easy to make electrum altcoin wallet, but if you found what the code they are using you can just change some codes for your own coins.