Ready SlackBuild

Table of Contents

1 Rationale

Ready SlackBuild allows you to download the source package and otherwise prepare to run a Slackbuild script that conforms to standards set by the maintainers of SlackBuilds.org. In particular, Ready SlackBuild reads the info file to find the download location, check the md5sum and therefore the info file must exist.

An info file usually looks like this:

		PRGNAM="R"
		VERSION="2.9.0"
		HOMEPAGE="http://www.r-project.org"
		DOWNLOAD="http://mirrors.ibiblio.org/pub/mirrors/CRAN/src/base/R-2/R-2.9.0.tar.gz"
		MD5SUM="a5b79a2bc1372136cda4674b5f46d146"
		MAINTAINER="Joel J. Adamson"
		EMAIL="adamsonj@email.unc.edu"
	      

1.1 Portability?

The rsb.sh script is written in fully-portable POSIX sh, but note that this script is only meant for Slackware usage, and its portability testing was limited to bash. In other words, there is no reason for this script to be portable. If you find a way to adapt it to your distro, please let me know. Keep in mind that a SlackBuild is not an ebuild, nor a Makefile.

2 Download

Ready SlackBuild is self-hosting: download this file and untar it, then just enter

		#> ./rsb.sh
	      

at the prompt and it will download the necessary tarball and check the md5sum. You can then run the SlackBuild to build the package.

3 Usage

Ready SlackBuild allows me to enter a SlackBuild application directory and enter

		#> rsb
	      

to download the source package, check the md5sum, and make the SlackBuild itself executable. After rsb runs without errors, I can simply run the SlackBuild to build the package.

3.1 The best way to use this script

I maintain a "ports collection" of packages from SlackBuilds.org using a daily-updated directory tree. The following script updates the tree everyday:

3.2 Mirroring Script

		  #! /bin/sh
		  # put this in ~/.cron.daily
		  #
		  # It will mirror Slackbuilds.org, so that you can just go to a
		  # directory in the tree and build the slackbuild, without having to
		  # download it.
		  DEST=$HOME/SlackBuilds/12.2

		  # update the collection
		  rsync --update --delete -av \
		  rsync://rsync.slackbuilds.org/slackbuilds/12.2/ \
		  $DEST

		  ########################################################################
		

4 Bugs? Feature requests? Additions?

If you encounter problems in running rsb that do not appear to be your own errors, please contact me at <adamsonj@email.unc.edu>. I also welcome suggestions, but features will be implemented in accordance with the priority that they have to my own usage (in other words, if you have a better idea about how to do this, please convince me to do it differently).

Author: Joel J. Adamson <adamsonj@email.unc.edu>

Date: 2009-05-11 12:01:28 EDT

HTML generated by org-mode 6.26trans in emacs 23