[[technical]]

Differences

This shows you the differences between two versions of the page.

technical [2010/01/30 02:33]
Gilbert Ashley
technical [2010/01/31 14:59] (current)
Pieter E Sartain Formatting
Line 80: Line 80:
Then, open the resulting NAME.src2pkg.auto file in any text editor so you can see the content. Leaving out most of the commented lines, you'll something like this: Then, open the resulting NAME.src2pkg.auto file in any text editor so you can see the content. Leaving out most of the commented lines, you'll something like this:
-''#!/bin/bash'' +  #!/bin/bash 
- +  # src2pkg script for: weechat 
-''# src2pkg script for: weechat'' +  SOURCE_NAME='weechat-0.3.0.tar.gz 
- +  NAME='weechat'# Use ALT_NAME to override guessed value 
-''SOURCE_NAME='weechat-0.3.0.tar.gz''' +  VERSION='0.3.0'# Use ALT_VERSION to override guessed value 
- +  # ARCH=' ' 
-''NAME='weechat' Use ALT_NAME to override guessed value'' +  # BUILD='1'  
- +  # PRE_FIX='usr' 
-''VERSION='0.3.0' Use ALT_VERSION to override guessed value'' +  # Any extra options go here: 
- +  # EXTRA_CONFIGS="" 
- ''# ARCH=' ' '' +  # Get the functions and configs 
- +  . /usr/libexec/src2pkg/FUNCTIONS ; 
- ''# BUILD='1''+  # Execute the named packaging steps: 
- +    
- ''# PRE_FIX='usr''+  pre_process 
- +  find_source 
- ''# Any extra options go here:'' +  make_dirs 
- +  unpack_source 
- ''# EXTRA_CONFIGS=""'' +  fix_source_perms 
- +  configure_source 
-''# Get the functions and configs'' +  compile_source 
- +  fake_install 
-''. /usr/libexec/src2pkg/FUNCTIONS ;'' +  fix_pkg_perms 
- +  strip_bins 
-''# Execute the named packaging steps:'' +  create_docs 
- +  compress_man_pages 
-''pre_process'' +  make_description 
- +  make_doinst 
-''find_source'' +  make_package 
- +  post_process 
-''make_dirs'' +    
- +  # end of weechat.src2pkg.auto script
-''unpack_source'' +
- +
-''fix_source_perms'' +
- +
-''configure_source''  +
- +
-''compile_source'' +
- +
-''fake_install'' +
- +
-''fix_pkg_perms'' +
- +
-''strip_bins'' +
- +
-''create_docs'' +
- +
-''compress_man_pages'' +
- +
-''make_description'' +
- +
-''make_doinst'' +
- +
-''make_package'' +
- +
-''post_process'' +
- +
-''# end of weechat.src2pkg.auto script''+
Any src2pkg script can be run as if it were a separate 'program', simply by making the script executable and then running it like this: ./NAME.src2pkg.auto Any src2pkg script can be run as if it were a separate 'program', simply by making the script executable and then running it like this: ./NAME.src2pkg.auto
Line 152: Line 125:
By using the command-line option '-V' along with any others, you can see some extra output from the src2pkg code which gives more detail about what it is doing. Using the '-VV' causes all the output from the commands run by src2pkg to be seen in the terminal. By using the command-line option '-V' along with any others, you can see some extra output from the src2pkg code which gives more detail about what it is doing. Using the '-VV' causes all the output from the commands run by src2pkg to be seen in the terminal.
-The optional 'build' function provides an easy way of using custom code +The optional 'build' function provides an easy way of using custom code for the three main steps of configuration, compiling and installing software. If uncommented, it will be run instead of the usual steps 
-for the three main steps of configuration, compiling and installing +configure_source, compile_source and fake_install. There are several other build systems which use a 'build' function, so this option makes it easy to translate build scripts from other system into the src2pkg format.  
-software. If uncommented, it will be run instead of the usual steps + 
-configure_source, compile_source and fake_install. There are several +It can also be used to 'cut and paste' blocks of code from existing SlackBuild scripts in order to translate them into src2pkg scripts.
-other build systems which use a 'build' function, so this option makes +
-it easy to translate build scripts from other system into the src2pkg +
-format. It can also be used to 'cut and paste' blocks of code from +
-existing SlackBuild scripts in order to translate them into src2pkg +
-scripts.+
===== 6. File Layout and Coding Style ===== ===== 6. File Layout and Coding Style =====
 
technical.txt · Last modified: 2010/01/31 14:59 by Pieter E Sartain
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki