diff --git a/astronaut/astronaut b/astronaut/astronaut index 9a36897..124b626 100755 --- a/astronaut/astronaut +++ b/astronaut/astronaut @@ -1,15 +1,37 @@ #!/bin/sh -e # Configuration + +# Build/install-time directories dir_build="/tmp/astronaut/build" # Temporary directory to build packages dir_source="/tmp/astronaut/source" # Directory where the package sources will be placed dir_install="/tmp/astronaut/install" # Directory where the package will be installed + +# Runtime directories dir_sysroot="" # The root directory of the system dir_prefix="/usr" # Prefix directory (for /bin, /lib, /share and such) + +# Default commands cmd_download="curl -# -L -o {dst} {src}" # Command to execute to download files cmd_extract="tar -x -C {dst} -f {src}" # Command to execute to extract files -unset dir_satellites # Directory where the satellite files are placed. -unset options + +# If we can't find the satellite file, we'll look in this directory for it. +unset dir_satellites + +# Options are comma-separated and parsed from front to back. +# This means that in "!opt,someotheropt,opt", opt is disabled. + +unset options # The least-priority global options +package_options() { :; } # Per-package options function. +# Example for package_options: +# package_options() { +# case "$1" in +# package1) echo "opt1,opt2,opt3" ;; +# package2) echo "someotheropts" ;; +# esac +# } + +# Load any user configuration [ -f /etc/astronaut.conf ] && . /etc/astronaut.conf [ -f "$HOME/.astronaut.conf" ] && . "$HOME/.astronaut.conf" @@ -17,6 +39,7 @@ unset options _download_only=false _vcs_only=false vcs_compile=false +unset _user_options # Options specified in the command line get the highest priority #_nuke_dir_install (This can be set from wrappers) # Some printing functions @@ -34,7 +57,14 @@ Usage: $0 [-sbipr