Build

Filesystem Layout

spb-build
source/                                (all the required source packages)
	which-2.19.tar.gz
build/                                 (package build files)
	default.conf                   (default global macros - see list below)
	which/
		package.conf
		2.19/
			default.conf
tmp/                                   (temporary build location)
package/                               (location of created packages)

Package Build Files

Each package requires at least two configuration files, formatted as bash scripts.

package.conf

Name Description Example Value
CFG_NAME The name of the package which
CFG_DESC Basic description of the package Shows the full path of shell commands
CFG_LICENSE License of the package source GNU GPL <http://www.gnu.org/licenses/gpl.html>
CFG_GROUP Category of the package Utilities
CFG_HOME Website of the original package http://www.gnu.org/software/which/

default.conf

Name Description Example Value
CFG_VERSION The version of the package 2.19
CFG_PACKAGER John Doe <john.doe@example.com> Name and URI (email or website) of the packager
CFG_SOURCE Filename of the source package as found in the source directory which-2.19.tar.gz
CFG_BUILDTMP Specify whether to use a temporary build directory when compiling (some packages require, most are optional) 1
CFG_BUILD Command string to build the source (below for macro definitions) configure --host=@ARCH --prefix=@DIRUSR --sysconfdir=@DIRETC --mandir=@DIRMAN --infodir=@DIRINFO && make && make install

Package Build File Macros

Macro Key Default Value Notes
DIRBIN/bin
DIRETC/etc
DIRLIB/lib
DIRVAR/var
DIRUSR/usr
DIRSBIN/sbin
DIRTMP/tmp
DIRJUNK/junkThis directory is not included in the actual package after the compilation step
DIRMAN/usr/man
DIRSHARE/usr/share
DIRINFO/usr/share/info
DIRLOG/var/log
DIRHOME/home
PKG_PREFIXp2The Prime build the package is targetted for
PKG_SUFFIXtar.bz2Packages can have any extension, but recommended to stay with default
PKG_COMPRESSbzCompression method (currently bz is the only option)
REPO_ARCHi686-linuxArchitecture all packages are built for

Build Command

./spb-build --pkgname=which --pkgversion=2.19