hopsan icon indicating copy to clipboard operation
hopsan copied to clipboard

Installation on archlinux

Open Xwang1976 opened this issue 4 years ago • 1 comments

Is your improvement request related to a problem? Please describe. I'm trying to create a PKGBUILD to install hopsan natively in archlinux. I've followed the build procedure, but I've noticed that there isn't any "make install" and that at the end of the building procedure all the executables and libraries are mixed in the hopsan/bin folder.

Describe the solution you'd like I would like to have a configure, make, make install procedure which will create the /usr/bin and /usr/lib folders with executables and libraries correctly separated and maybe with the possibility to install in /opt instead of /usr as some other open source code projects permit to do.

Describe alternatives you've considered I suspect that the debian packages rules require to do something similar when a deb package is created. If so, maybe something similar to what I'm asking for is already available.

Additional context Add any other context or screenshots about the feature request here.

Xwang1976 avatar Jul 03 '20 12:07 Xwang1976

You may be able to use the copyInstallHopsan.sh script located in the packaging subdirectory.

It copies the files that were written back to the source code directory by the build, and some files that were there to begin with. It takes two arguments, src and dst directories. Deb packaging uses this script to "install" to opt/hopsan

CMake support is a work in progress, once it is finished, you will be able to make install as you would expect.

peterNordin avatar Jul 03 '20 12:07 peterNordin