import "say_hello" # Import some functions. See functions/say_hello.sh for more info.
import "say_hello" # Import some functions. See functions/say_hello.sh for more info.
# Info (Please declare it, as it will be used outside of this script, too)
# Info (Please declare it, as it will be used outside of this script, too)
# Required info
name=hello # Name of the software, not the package name.
name=hello # Name of the software, not the package name.
# Same source files will be used for the same software, despite the package name being different.
# Same source files will be used for the same software, despite the package name being different.
version=2.10
version=2.10
# Optional info
update_url="https://ftp.gnu.org/gnu/$name/" # URL to a downloadable plain-text file which updates when a new version is available.
update_url="https://ftp.gnu.org/gnu/$name/" # URL to a downloadable plain-text file which updates when a new version is available.
update_names="$name-$version.tar.gz" # Specify what the lines containing the version number look like on the download page.
# It's a comma-separated list, and can contain multiple entries.
# Every entry must contain at least one instance of $version,
# as another program will look for any different versions on the same page.
# You may not need to set this, in which case the program will try to guess it from the download commands.
vcs_compile=true # Set this to true if it's a vcs package, and we've just downloaded an update for it. This is meant to be used in functions/header_end hooks, and has to be set before header_end is called (or by a header_end hook).
vcs_compile=true # Set this to true if it's a vcs package, and we've just downloaded an update for it. This is meant to be used in functions/header_end hooks, and has to be set before header_end is called (or by a header_end hook).
# Please note that setting the above info from an imported script is supported, as long as it's done in the header.
# Astronaut will generally prefix internal variables with "_". There are, however, a few exceptions.
# Astronaut will generally prefix internal variables with "_". There are, however, a few exceptions.
# Some of those you can touch, some not.
# Some of those you can touch, some not.
# "You shouldn't even look, unless you're hacking really bad, but definitely don't touch"-variables:
# "You shouldn't even look, unless you're hacking really bad, but definitely don't touch"-variables:
@ -49,7 +59,10 @@ header_end # End of the header.
# - dlextract
# - dlextract
# - dlfile
# - dlfile
# - extrafile
# - extrafile
# - import
# getfile and extract are technically allowed, but not encouraged.
# getfile and extract are technically allowed, but not encouraged.
# Basically, do not use anything that touches dir_build or dir_install or does anything other than fetching the required files.
# The same rule above applies for imported commands.