Premake version 4 has experimental support as a generator package.
You can find this generator in this repository: https://github.com/memsharded/conan-premake
In order to use it, clone the repository and export the recipe to the local cache:
$ git clone https://github.com/memsharded/conan-premake $ conan export conan-premake memsharded/testing
Now you can use this generator as a requirement in your recipes but also as a generator:
[requires] PremakeGen@0.1@memsharded/testing [generators] Premake
Check the generator package examples to learn how to create and share custom generators like this one.