buildpkg(8)

NAME
buildpkg - automated build script creation tool

SYNOPSIS
buildpkg [options]

DESCRIPTION
buildpkg is a script inspired by makepkg from arch which greatly simplifies the build process. It parses an easy to create ZENBUILD meta-file and from that creates a conventional build script that follows all of the zenwalk packaging standards that can be run on its own. See ZENBUILD(5) for details on how to create proper meta-files. The advantage of using buildpkg 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

buildpkg
    When run with no arguments, buildpkg sources the ZENBUILD in the current directory (the ZENBUILD 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.

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

buildpkg -x, --execute
    Does everything that running it with no arguments would but afterwards actually executes the build-$pkgname.sh script. Remeber 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.

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

buildpkg -v, --version
    Outputs the buildpkg version.

buildpkg -z, --zen-pkgcheck
    runs zen-pkgcheck.pl to check for rules conformity

buildpkg -t, --tgz
    Create package as tgz instead of the default tlz

buildpkg -c, --clean-dirs
    Remove pkg and src directories.

buildpkg -X, --x-and-clean
    Same behaviour as -x and -c combined together

AUTHORS
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 pnboy@pinguix.com.

SEE ALSO
ZENBUILD(5)