slkbuild(8)

NAME
slkbuild - automated build script creation tool

SYNOPSIS
slkbuild [options]

DESCRIPTION
slkbuild is a script inspired by makepkg from arch which greatly simplifies the build process. It parses an easy to create SLKBUILD meta-file and from that creates a conventional build script that follows all of the slackware packaging standards that can be run on its own. See SLKBUILD(5) for details on how to create proper meta-files. The advantage of using slkbuild is that it ensures package uniformity and allows for an easy to edit meta-file in the event that one might require customization or might need to update the script for new releases. It also makes the buid process much quicker as downloading the source, untarring, gzipping man and info pages, stripping binaries, making sure on graphical applications that the menu entry is compliant as well as a host of other things are taken care of automatically freeing up time that would otherwise be consumed by these redundant tasks.

OPTIONS

slkbuild
    When run with no arguments, slkbuild sources the SLKBUILD in the current directory (the SLKBUILD must be in the current directory), and creates a conventional build-$pkgname.sh script, which you can then inspect or do whatever with and then run.

slkbuild -g, --generate [prototype]
    Copies over SLKBUILD prototypes stored in /etc/slkbuild. It optionally takes a prototype argument which allows for multiple prototypes to be stored. The prototype argument is the extension of the SLKBUILD prototype stored in /etc/slkbuild. For example, if you did slkbuild -g python, /etc/slkbuild/SLKBUILD.python will be copied over, slkbuild -g foo, /etc/slkbuild/SLKBUILD.foo will be copied over. If called with no prototype argument, slkbuild -g, it moves over /etc/slkbuild/SLKBUILD.

slkbuild -x, --execute
    Does everything that running it with no arguments would but afterwards actually executes the build-$pkgname.sh script. Remember that like running any build script, this option will require you to be root. This option does log the output of the build script's execution to build-$pkgname.log in the current directory.

slkbuild -c, --clean-dirs
    Creates a build-$pkgname.sh script that, when it is run, will remove the pkg and src directories after building the package.

slkbuild -X, --x-and-clean
    Same behaviour as -x and -c combined together. It additionally deletes the build-$pkgname.sh script, after executing it to create the package.

slkbuild -h, --help
    Displays a help dialog.

slkbuild -v, --version
    Outputs the slkbuild version.

ENVIRONMENT VARIABLES
When executed, slkbuild will look for the following environment variables. If they have been specified, they will be used for creating the package.

arch
    This will set the arch used for building the package. See also SLKBUILD(5)

ARCH
    Same effect as arch

numjobs
    This will set the number of jobs used by make in the build() function of the SLKBUILD file. If not specified, the default value is 1.

AUTHORS
slkbuild was forked from buildpkg by George Vlahavas <vlahavas~at~gmail~dot~com> buildpkg was initially written by Matthew Bruenig <matthewbruenig@gmail.com>.
See the AUTHORS file for a list of other contributors.

Report bugs or suggestions to @email@.

SEE ALSO
SLKBUILD(5)