---
# Copyright 2005-2014 Jonathan Dowland
# Copyright 2011 Simon Howard
# Copyright 2015-2017 Simon McVittie
# Copyright 2015-2019 Alexandre Detiste
# Copyright 2016-2019 Fabian Greffrath
# SPDX-License-Identifier: GPL-2.0-only

# Version reference:
# http://doomwiki.org/wiki/DOOM2.WAD
longname: "Doom 2: Hell on Earth"
franchise: Doom
copyright: "\u00a9 1994 id Software"
try_repack_from:
- /usr/share/games/doom3bfg

plugin: doom_common
wiki: Doom_II

help_text: |
  Please provide the DOOM2.WAD from Doom 2 version 1.9.

  Patching older versions is not currently supported. If you have
  an older version, it might be possible to patch it manually using dosbox.

packages:
  doom2-wad:
    langs: [en,fr]
    provides: doom-wad
    conflicts:
      - deb: "freedoom (<< 0.6.4-4)"
      - deb: "freedm (<< 0.6.4-4)"
    steam:
      id: 2300
      path: "common/Doom 2"
    # FIXME: also look in 208200, common/DOOM 3 BFG Edition
    gog:
      url: doom_ii_final_doom
      game: doom_ii_master_levels_game
    install:
    - doom2.wad
    doc:
    - manual.pdf

  doom2-nerve-wad:
    longname: "Doom 2: No Rest for the Living"
    wiki: No_Rest_for_the_Living
    expansion_for: doom2-wad
    engine:
      deb: prboom-plus | boom-engine
      fedora: prboom-plus
    steam:
      id: 208200
      path: "common/DOOM 3 BFG Edition"
    main_wads:
      nerve.wad:
        args: -file %s
    install:
    - nerve.wad

  doom2-masterlevels-wad:
    longname: Master Levels for DOOM II
    wiki: Master_Levels_for_Doom_II
    expansion_for: doom2-wad
    main_wads: {}
    steam:
      id: 9160
      path: "common/Master Levels of Doom"
    gog:
      url: doom_ii_final_doom
      game: doom_ii_master_levels_game
    depends:
      - game-data-packager-runtime
      - deb: doom2-wad | freedoom
        generic: doom2-wad
    symlinks:
      $install_to/doom2-masterlevels-tryexec: etc/alternatives/doom
    install:
    - masterlevels wads
    doc:
    - masterlevels doc

files:
  doom2.wad:
    alternatives:
    - doom2.wad?1.9
    - doom2.wad?bfg
    - doom2.wad?xbox360_bfg
    - doom2.wad?xbla
    - doom2.wad?xbox_roe
    - doom2.wad?psn
    - doom2.wad?tapwave_zodiac
    - doom2f.wad

  doom2f.wad:
    install_as: doom2.wad

  doom2.wad?1.666g:
    unsuitable: Doom 2 v1.9 is required
  doom2.wad?1.666:
    unsuitable: Doom 2 v1.9 is required
  doom2.wad?1.7:
    unsuitable: Doom 2 v1.9 is required
  doom2.wad?1.7a:
    unsuitable: Doom 2 v1.9 is required
  doom2.wad?1.8:
    unsuitable: Doom 2 v1.9 is required

  master.exe:
    unpack:
      format: lha
    provides:
    - masterlevels wads
    - masterlevels doc

  nerve.wad:
    alternatives:
    - nerve.wad?pc
    - nerve.wad?xbox360_bfg

  setup_doom2_2.0.0.6.exe:
    unpack:
      format: innoextract
    provides:
    - doom2.wad?1.9
    - masterlevels wads
    - masterlevels doc
    - manual.pdf

  setup_doom_3_bfg_1.14_(13452)_(g).exe:
    other_parts:
    - setup_doom_3_bfg_1.14_(13452)_(g)-1.bin
    - setup_doom_3_bfg_1.14_(13452)_(g)-2.bin
    unpack:
      format: innoextract
    provides:
    - doom2.wad?bfg

groups:
 default: |
  14604584  25e1459ca71d321525f84628f45ca8cd doom2.wad?1.9
  14691821  c3bea40570c23e511a7ed3ebcd9865f7 doom2.wad?bfg
  14677988  f617591a6c5d07037eb716dc4863e26b doom2.wad?xbox360_bfg
  14685034  43c2df32dc6c740cb11f34dc5ab693fa doom2.wad?xbla
  14683458  a793ebcdd790afad4a1f39cc39a893bd doom2.wad?xbox_roe
  14599800  4c3db5f23b145fccd24c9b84aba3b7dd doom2.wad?psn
  14639397  9640fc4b2c8447bbd28f2080725d5c51 doom2.wad?tapwave_zodiac
  14607420  3cb02349b3df649c86290907eed64e7b doom2f.wad

  14824716  d9153ced9fd5b898b36cc5844e35b520 doom2.wad?1.666g
  14943400  30e3c2d0350b67bfbf47271970b74b2f doom2.wad?1.666
  14612688  ea74a47a791fdef2e9f2ea8b8a9da13b doom2.wad?1.7
  14612688  d7a07e5d3f4625074312bc299d7ed33f doom2.wad?1.7a
  14612688  c236745bb01d89bbb866c8fed81b6f8c doom2.wad?1.8

  3819855   967d5ae23daf45196212ae1b605da3b0 nerve.wad?pc
  3786293   4f47bb32bf5fd06bc1cc0b4a2e8e3910 nerve.wad?xbox360_bfg
  14824716  d4c3cb51899e8c399d0ea48cfcc87c53 nerve.wad?xboxla

  1436188   7c203b03cf052b6b731baec7c42d7ea9 master.exe
  616115    0bd88c082f76d6a03f0eed9a4150a51e manual.pdf
  21908760  5915beaf6b0947fc2ec8075e262b4096 setup_doom2_2.0.0.6.exe

  779640    d93c52c6d129f93672ca2fa7665229c9 setup_doom_3_bfg_1.14_(13452)_(g).exe
  4294194686 884b37ceda0bc95a4d4cda7f9dc0ddef setup_doom_3_bfg_1.14_(13452)_(g)-1.bin
  53043836  83c57e05fc407ec3c20459d78a564519 setup_doom_3_bfg_1.14_(13452)_(g)-2.bin

 masterlevels wads: |
  185135    cb03fd0cd84b10579c2b2b313199d4c1 attack.wad
  199534    a421ca18cea00a2696162f8d2a2beeca blacktwr.wad
  258942    18eb4ffb3094ddb690e62211dc6169a1 bloodsea.wad
  157529    33493942592d764e7787fb0ad7d03044 canyon.wad
  151817    e7c273033376824edf95e1328261e7de catwalk.wad
  141548    77c179948df47a7a613bd1181c959892 combine.wad
  104654    cbf714b499ebdef2682990eaf93fdb5f fistula.wad
  116403    f000701a3ed1f49249ee08550c03dfa5 garrison.wad
  221009    a1efff02df6d873762ebac6b12358bbc geryon.wad
  245444    787fa80fe9665c322f853b74838e77cc manor.wad
  121406    b4eaf844b135cc2a0058c6e0149b4408 mephisto.wad
  351712    aea597159dee96bcc58f3f9e3e586182 minos.wad
  158514    46f58580e7792f486c747cf1117c4ca1 nessus.wad
  223555    d560abb6d5719d46ebb47b27d7813a4b paradox.wad
  105780    b572d518d564c7d7b6b259a726538cbb subspace.wad
  127480    bb417f07804373415a6ed8e533242c3c subterra.wad
  190531    65b4abcb74e7a386d5c024cf250d6336 teeth.wad
  286220    8474f6d663f04630de05ecac36b574d1 ttrap.wad
  235353    a49dccebb5f32307246b7f32da121cf7 vesperas.wad
  171232    3c0874f2df3c06a002ee2a18aba0f0e8 virgil.wad
 masterlevels doc:
  doc: true
  group_members: |
   1581      b5d81e4014b0e41a977ad837be62015a attack.txt
   4872      cd05ef340481c80dd866910fb61de078 blacktwr.txt
   5349      9f55a86718e7d3a9d5e84b7f90391fdd bloodsea.txt
   1585      62841b903a25efbbe07ba04629a472e1 canyon.txt
   1280      77464c420be047460fdf01a927679e18 catwalk.txt
   1239      30e17b85fb58f45bfd54076bca1d6c4f combine.txt
   1280      055cb6078dc8c02d687a46cff0efdf99 fistula.txt
   1193      c4804663d959554267e031f020f024a6 garrison.txt
   2239      8b87125eef93282b724ebca5c2bf46b9 geryon.txt
   2903      6f519312e20de7b6c16cab21c5b55fca manor.txt
   4695      86c3aceb7990dea92923d42564503541 mephisto.txt
   2631      61f54fe6c10b424e5238a0444c63306e minos.txt
   3037      ddad20557f7c451253d6aaff9453814d nessus.txt
   3174      37f0c991d4e74a158c9f9e6f824913e6 paradox.txt
   1278      802bd4428c58001439879b9b5d684bff subspace.txt
   1215      3497bfd39788d106b37bdfe107003625 subterra.txt
   5190      d150006885a956f378b29a0fedde5dd7 teeth.txt
   2734      7aa8fe8b34a8e1cc775c4510efba6dcd ttrap.txt
   1697      9a6328c52b2436c3dabd79248afe5960 vesperas.txt
   2813      e767d645de816a9d5411075d0d002a78 virgil.txt

sha1sums: |
  7ec7652fcfce8ddc6e801839291f0e28ef1d5ae7  doom2.wad?1.9
  79c283b18e61b9a989cfd3e0f19a42ea98fda551  doom2.wad?1.8
  70192b8d5aba65c7e633a7c7bcfe7e3e90640c97  doom2.wad?1.7a
  78009057420b792eacff482021db6fe13b370dcc  doom2.wad?1.7
  6d559b7ceece4f5ad457415049711992370d520a  doom2.wad?1.666
  a4ce5128d57cb129fdd1441c12b58245be55c8ce  doom2.wad?1.666g
  a59548125f59f6aa1a41c22f615557d3dd2e85a9  doom2.wad?bfg
  b7ba1c68631023ea1aab1d7b9f7f6e9afc508f39  doom2.wad?xbox360_bfg
  55e445badd63d8841ebea887910c26c62c7f525e  doom2.wad?xbla
  1c91d86cd8a2f3817227986503a6672a5e1613f0  doom2.wad?xbox_roe
  ca8db908a7c9fbac764f34c148f0bcc78d18553e  doom2.wad?psn
  2cda310805397ae44059bbcaed3cd602f4864a82  doom2.wad?tapwave_zodiac
  d510c877031bbd5f3d198581a2c8651e09b9861f  doom2f.wad
  3451288383fb16e196f273d9f85d58c1fda97bf4  nerve.wad?pc
  bb78b34dba684cc1ef1eea21f37092c6784d3b6f  nerve.wad?xbox360_bfg
  139095fcf78349ad570be721d21dd1fa809fb3c8  attack.txt
  e0b93dcb87875544cc57306088983cb21ca45165  attack.wad
  c64e724dda69bd7318b63b9192434edc1bd9dcf7  blacktwr.txt
  53cd0db349198a721162282f95d15c2ec407a555  blacktwr.wad
  0ff3cd267de9bfb09c8a617be64963d79b6a0180  bloodsea.txt
  51a02e02ed92ee22ae8aff0dfeee5b41e55d23a4  bloodsea.wad
  659dde6c7d605295be489c6a590c58133f3eeb3e  canyon.txt
  33a10a0515a52ce2a017648d121d719adccc3900  canyon.wad
  98e00e91aebe83d607a33f9cb3e94ad6721b3947  catwalk.txt
  5dcd681b968098f24b774e3f3cab19a38e40a091  catwalk.wad
  0b2b8664511ea4dd150be583ae53ff6108e2df81  combine.txt
  f94d5e96923b7d148639c471a2700e64f3a6bad1  combine.wad
  dab04c6214cc4b916a640de82a1dbf0449c8b506  fistula.txt
  a7a45f5becf6cb470be3e19ffa46153f156641fe  fistula.wad
  f88581c9ecd21deea2204a1c3daf083fdeee05e3  garrison.txt
  5a07c230ca351c9865f838bda0ece4e46ba0b412  garrison.wad
  0fad0f4c4d2f69092ae5a45e6d5cc0af15d120a6  geryon.txt
  2889354437b3814197c5de030e392ed0061f968b  geryon.wad
  ffa19b1336dfd68042b4533a0fc94bab01535bda  manor.txt
  6698a16408d5d337f13a444d5dc71051ea5fcad4  manor.wad
  d9d5a00674fb5e99040fbbcc69f18ac8c8d7d472  mephisto.txt
  6335ff2e8c767f49fd2545d1a0493a7721757385  mephisto.wad
  4b198a412846b77ac86fa527b734741e0cb38b13  minos.txt
  5fc46a9bd60b9fc2ed00cad3e7f57fe0cc43422b  minos.wad
  df4f9af8afc099103c61e40259a39c23f5614172  nessus.txt
  395fcfdf94b9d2514a1d0e7e53f0738a077ecee5  nessus.wad
  371fcb32093e375401d6abb4c0570c3170423e95  paradox.txt
  26f96ac183be4383ad7f3daed2c16548fa69dd42  paradox.wad
  12e8f119fef6527087f05d7c273b5d4aa92660b3  subspace.txt
  485758921ddb3686763c53b5638699d1b65a5ac0  subspace.wad
  4c018173229d3e285896e4779a29dfec4b85a29a  subterra.txt
  d91fbab728132dbecb9f7c9cea9212a3dfd795ee  subterra.wad
  9358562fe422d31cebeb3b9f1c395a3887f42c29  teeth.txt
  5bbf0b9d52b831fe47dc09ac5a51d923bed03e3e  teeth.wad
  63ed5fe538fb690779418cf568226edecd4ae497  ttrap.txt
  50a68fcb4761f6155febceca947e663d6b442845  ttrap.wad
  9b9570ce159f8a978c15fcabea5922aa1f8d9acb  vesperas.txt
  8341faf0e8469e43178b0be3fe7ebb40d5a33b03  vesperas.wad
  c8315f125088644b3b666cc9b227ced6226ca7d9  virgil.txt
  e3de77406aff3b6e5f06c3d450d70b8e6c6a34f9  virgil.wad
  b7806fd4bed5ab1b34ecb46380679a7b5cc488df  master.exe

...
# vim:set sw=2 sts=2 et:
