the example is here: GitHub - particle-iot/uber-library-example: The first Spark firmware library. To exemplify naming conventions and required files. but slightly outdated.
Here are some recently updated ones that you can take a look:
The import may not be directly compatible and require some code changes to suit the spark core architecture.
@peekay123 is very experienced in this and if you have the link or something, he should be able to help take a look.
On a side note, for people reading this thread, there’s a small discussion but nothing concrete yet to work on porting standard arduino examples and 3rd party libraries on to the platform.
We should and most likely be starting this as soon as everyone on the Elite team has discussed more details and work with the Spark team on this aspect.
Cheers! 