|
HowToUse
How to create package from source tarball Introvpackager is a GUI application, so using it is as easy as point and click. However, there are some specific procedures that must be followed if you will share your work with others, or contribute to the VectorLinux development by submitting your packages. Building a package from source tarballvpackager will can build most ordinary applications with no problem. As of version 1.0.11, vpackager also offers support for packaging python applications as well as CMake sources. These procedures should require no additional knowledge from you (the user). Basically, here is what vpackager does behind the scenes:
What you need to doWhen building from source tarball, vpackager will not download the source for you. So you would need to locate your source, and download it to your local hard drive. After you've downloaded the source code, this is the procedure:
Most applications have on-line documentation were ou can find information about application-specifig build options to fine tune your installation or enable / disable extra features. The default build options and CFLAGS settings will work for most applications
If you have located a "slack-desc" file online for your application, then click the "Load ... " button to insert it into your package. If you would like to create a new description file for the package, click the "Create ... " button to create a new file using the built-in slack-desc creator tool. See how to use the slac-desc creator writer tool
You should now see the package extracting and the source building right before your eyes If the build failsIf there are any errors at any point in the build process, the build will fail and vpackager will warn you that there have been errors during the build. At that point, you can look at the output, and see what the error was. You can also click the Save Output button to save the build log to a text file If the build succeedsvpackager will let you know the build process has successfully completed. Up to this point, no changes have been made to your system.
At this point, vpackager will prompt you to install the package or not to install Choose "Install" to install the package to your system... or "Do not install" to simply save the package for later use. At this point, the build and package processes are complete... What happens to the packages created by vpackager?Whether or you install the new package or not, vpackager will have the resulting binary package to the same location as your source tarball. For example, You built /home/<your_name>/foo-1.2.tar.bz2Your resulting package will be /home/<your_name>/foo-1.2-ix86-xvlxx.txz.Notice how both the source and binary packages end up in the same location. That's it... That is how you make a binary package from source tarball using vpackager. Important Notes
Description files are a must if you plan on submitting packages to the repositories. Enjoy! |
Sign in to add a comment