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

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

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

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

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