This isn't something you can do at the software stage, its something you have to do at the capture stage. In short the world rotates, thus if you keep your camera in the same position whilst taking a long series of photos you'll end up with the stars moving over the sky. When these are stacked you get your light trails.
To counter you need a special equatorial mount - either manual or motorized - to allow the cameras position to be changed as the stars move so that you can track them through the sky.
the other option is a single photo with a very long exposure (with the tracking mount again) however that would likely have to be motorized and require a very sturdy tripod and also some kind of custom advanced cooling for the sensor to prevent heat build up (and that all likely runs at a high budget)