11 : ${source_package_type:=tar.gz}
12 : ${source:=$name-$version.$source_package_type}
14 if [ -z "$force" -a -e $sourcedir/$source ]; then
18 if [ -n "$origin" ]; then
20 gnu
) pkg_download
="http://ftp.gnu.org/pub/gnu/$name/$source";;
21 sf
) pkg_download
="http://downloads.sourceforge.net/sourceforge/$name/$source";;
22 *) echo >&2 "$name: Unknown origin."; exit 1;;
26 if [ -n "$download" ]; then
27 pkg_download
=$download/$source
30 if [ -z "$pkg_download" ]; then
31 echo >&2 "$name: download location not found."
36 echo Downloading
$name from
$pkg_download ...
41 -f|
--force) force
=yes; shift;;
42 -*) echo "$0: unrecognized option"; exit 1;;
46 echo "Usage: $0 package-name ..."
51 . $
(get_recipe_name
$name)