Saturday, December 9, 2017

The new SlackBuild tool

Recently, if you take a look at the Zenwalk changelog, you may have noticed the addition of a new tool called SlackBuild.

This script is intended to build auto-magically most "simple" packages. It can be customized with optional hook subscripts (build.sh  configure.sh  postbuild.sh  prebuild.sh) to handle complex packages builds.

Anyway, for most simple packages (for example : a library package called "foobar") all you have to do is :
  1. put the source alone in a directory (ie : foobar-1.1.tar.gz)
  2. put the slack-desc for foobar in this same directory (if you omit the slackdesc, a generic description for foobar will be generated)
  3. run "SlackBuild foobar" inside the directory

As a result you will get a binary slackware package for the software foobar 1.1

Please try it :) and report improvements !

Have fun
JP