The following instructions presume at least a basic understanding of:
Also, it is assumed you are running src2pkg on Slackware.
src2pkg has been developed to make it as easy as possible to go from a single source archive to a single installable package. It is not, however, a substitute for package-making experience and understanding.
For a more complete picture, try the tutorial.
Download the Slackware package here.
Install as root, with:
~# installpkg src2pkg-*.tgz
After installation, while still root:
~# src2pgk --setup
Put the kettle on.
It's advisable to set up a clean working area to keep your source if you don't have one already, and doubly advisable to do so as a user, not root.
~$ mkdir src
Next, take a look at the configuration file just installed.
~$ less /etc/src2pkg/src2pkg.conf
The important part we need to know is on line 185:
## Working Directories # The default settings for these are like for Slackware SlackBuilds: # # The tarball, or link to it, is in the current directory # SOURCES_DIR="$CWD" # Sources are unpacked and built in /tmp # SRC_BUILDS_DIR="/tmp" # The package build tree is also in /tmp # PKG_BUILDS_DIR="/tmp" # Finished packages are left in /tmp # PKG_DEST_DIR="/tmp"
Read the rest of the file for details. Now we know most of what's going to happen is going to happen in /tmp .
Make tea.
Push the button, make the noise:
~/src$ src2pkg http://example.com/sources/a_configure_make_makeinstall.tar.gz
Pay attention to the output.
You should now find a package in /tmp called:
/tmp/a_configure_make_makeinstall-1.0.0-i486-1.tgz
Drink you tea.
Install the package you've just created, and do the washing up.
Some ideas:
/etc/src2pkg/src2pkg.conf, and tweak your user settings in ~/.src2pkg/src2pkg.conf. The latter is especially useful for not overriding the main configuration file.~/.src2pkg/extensions/<process_number>.<type>, where type is pre or post and process_number is the number found from the process index - the two digit number prefixed on the files in /usr/libexec/src2pkg/.