|
|
|
# Example of a satellite file, which is just a shell script with a cool name.
|
|
|
|
|
|
|
|
# Info (Please declare it, as it will be used outside of this script, too)
|
|
|
|
name=hello
|
|
|
|
version=2.9
|
|
|
|
|
|
|
|
# Get them files
|
|
|
|
# URL [REQUIRED], MD5sum [REQUIRED], Custom command
|
|
|
|
download "http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz" \
|
|
|
|
"67607d2616a0faaf5bc94c59dca7c3cb" \
|
|
|
|
"curl -L -o {dst} {src}"
|
|
|
|
# Name [REQUIRED], Custom command
|
|
|
|
extract "$name-$version.tar.gz" \
|
|
|
|
"tar xvf {src}"
|
|
|
|
# Abbreviation for the above functions. Does not allow custom commands
|
|
|
|
#dlextract "http://ftp.gnu.org/pub/gnu/$name/$name-$version.tar.gz" \
|
|
|
|
# "67607d2616a0faaf5bc94c59dca7c3cb"
|
|
|
|
# Copy local file to build directory. Path relative to the location of the satellite file
|
|
|
|
#extrafile "Herpaderp.txt"
|
|
|
|
|
|
|
|
# Compilation instructions
|
|
|
|
cd "$name-$version"
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
|
|
|
|
|
|
|
# Know if the user wants the package to be checked
|
|
|
|
if do_check; then
|
|
|
|
make check
|
|
|
|
fi
|
|
|
|
# Abbreviation for the above, for single commands
|
|
|
|
#do_check make check
|
|
|
|
|
|
|
|
make DESTDIR="$dir_install" install
|