# Recipe for Marathon Infinity 1.0, by John Robert Beshir <namegduf@fudgeman.org>.
compile_version=1.8.0
recipe_type=manifest

urls=(
    "http://trilogyrelease.bungie.org/files/MarathonInfinity.zip"
    "ftp://ftp2.fileball.net/fileball/marathon/aleph1/alterations/MarathonIconsforWindowsv12.zip"
)
file_md5s=(
    "ea71dcd50aeb2a9379ebd4cd33780e59"
    "36462cf4be62a2eb0db9bb5aaa4a05ed"
)
file_sizes=(
    "40305709"
    "4755759"
)
unpack_files=files_in_root

manifest=(
 "MarathonInfinity:Shared/AlephOne/Scenarios/MarathonInfinity"
 "MarathonIcons/MarathonInfinity/AlephOne.ico:Shared/icons/hicolor/128x128/apps/AlephOne-MarathonInfinity.ico"
 "AlephOne-MarathonInfinity.desktop:Shared/applications/AlephOne-MarathonInfinity.desktop"
 "marathoninfinity:bin/marathoninfinity"
)

pre_install() {
    # Make the startup script executable.
    chmod a+x marathoninfinity

    #Remove the space in the extracted directory name, making the manifest work.
    mv "Marathon Infinity" MarathonInfinity
}
