[Slackbuilds-users] Slackbuild Directories

xgizzmo at slackbuilds.org xgizzmo at slackbuilds.org
Sat Feb 2 00:39:34 UTC 2013

On Friday 01 February 2013 13:58:31 Bradley D. Thornton wrote:
> On 01/31/2013 07:03 PM, John C. Gage wrote:
> > Has there ever been a thought to modify the slackbuild script to configure,
> > make and create the TXZ file in the same directory in which the SlackBuild
> > script was run? Can the mod also automatically call installpkg and install
> > the package all in one script?
> I tend to keep my SBo's in /usr/local/slackbuilds. Then when I untar
> them, they reside, along with the source which I download, in
> /usr/local/slackbuilds/<package_name>.
> I like to keep all of my packages in /usr/local/packages, and create a
> symlink there so I can get any package via HTTP. It's convenient, much
> less messy than /tmp, which I like to keep cleaned out, and makes for
> easy re-distribution, rollbacks, and use of packages later.
> Change the output line in <package_name>.SlackBuild from /tmp to:
> OUTPUT=${OUTPUT:-/usr/local/packages}
> I also change this to be the default in sbopkg too. Of course, you'll
> need to:
> # mkdir -p /usr/local/packages
> I hope that helps!
> Kindest regards,

No reason to edit the Slackbuild at all add something like this to you profile:

export OUTPUT="/usr/local/packages"
export PKGTYPE="txz"


OUTPUT="/usr/local/packages" PKGTYPE="txz" <package_name>.SlackBuild


More information about the SlackBuilds-users mailing list