Is there a way to use Arduino IDE sample programs and libraries on HiFive1 revb?

Arduino IDE have so much more and better sample programs and libraries. Is there a way to import these files in Freedom Studio? The Hifive1 board have Arduino IDE support, but not the Hifive1 revb.

To be more precaise, I am trying to get working Arduino-ST7789-Library (a library for color LCD screen via SPI interface). What are my options?

I am using FreedomStudio 4.7.2.2019-05-0 running on Ubuntu 19.04 64bit and I have the Hifive1 revb board.

The arduino libraries are C so you can just incorporate them as such