diff options
author | Pellegrino Prevete | 2022-03-07 19:17:19 +0000 |
---|---|---|
committer | Pellegrino Prevete | 2022-03-07 19:17:19 +0000 |
commit | 25bb29c056ead1085799ac2142d2225bdafe66a9 (patch) | |
tree | 1bd9d5a93a2ca36ebad4630f8b5a8abbe9a69e1e | |
parent | 62a22acd03e5c9b97660b659a3e97d200d41b5df (diff) | |
download | aur-25bb29c056ead1085799ac2142d2225bdafe66a9.tar.gz |
modular
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | com.naughtydog.CrashBandicoot2.desktop | 18 | ||||
-rw-r--r-- | com.naughtydog.CrashBandicoot2.png | bin | 403613 -> 0 bytes | |||
-rw-r--r-- | psx-template.desktop | 17 |
5 files changed, 44 insertions, 33 deletions
@@ -1,18 +1,18 @@ pkgbase = crash-bandicoot-2 - pkgdesc = PlayStation game. + pkgdesc = 1997 platform video game developed by Naughty Dog and published by Sony Computer Entertainment for the PlayStation. pkgver = 1.0 - pkgrel = 1 + pkgrel = 2 url = https://en.wikipedia.org/wiki/Crash_Bandicoot_2:_Cortex_Strikes_Back arch = any license = custom depends = duckstation source = SCES-00967.bin::https://archive.org/download/redump.psx/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.zip/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.bin source = SCES-00967.cue::https://archive.org/download/redump.psx/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.zip/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.cue - source = com.naughtydog.CrashBandicoot2.desktop - source = com.naughtydog.CrashBandicoot2.png + source = psx-template.desktop + source = com.naughtydog.CrashBandicoot2.png::https://upload.wikimedia.org/wikipedia/en/e/e6/Crash_Bandicoot_2_Cortex_Strikes_Back_Game_Cover.jpg sha256sums = 9499b6ad8f0cfdb99ee8ae40bc98776f56fdaa91d01e55448f62aaa2c0df7853 sha256sums = 6a4bf93ea6b904303254faa946d877cd705893c17458acb2549606dae586fd98 - sha256sums = c86c504da065221580a4751abf67da5d5be16bee8daea27806103cc21b91d329 - sha256sums = 410cf854f85ff43c4720ef5cf01a32d92dddd96890abbbd94193adb83fa78785 + sha256sums = fdfbc31089c3e1b63e92ff58618262b72d1f8baba11a1688f0b8ab3a932d70c6 + sha256sums = 25672f46b68b4108344292ca5265bc78394ddbc39f3431d2fae6d4bccf8e2773 pkgname = crash-bandicoot-2 @@ -1,9 +1,11 @@ _uuid="SCES-00967" _app_id="com.naughtydog.CrashBandicoot2" +_title="Crash Bandicoot 2 - Cortex Strikes Back" +_rom_filename="${_title} (Europe) (En,Fr,De,Es,It) (EDC)" pkgname=crash-bandicoot-2 pkgver=1.0 -pkgrel=1 -pkgdesc="PlayStation game." +pkgrel=2 +pkgdesc="1997 platform video game developed by Naughty Dog and published by Sony Computer Entertainment for the PlayStation." arch=('any') url="https://en.wikipedia.org/wiki/Crash_Bandicoot_2:_Cortex_Strikes_Back" depends=('duckstation') @@ -11,17 +13,27 @@ license=("custom") _dmca_exemption="https://archive.org/about/dmca.php" source=("${_uuid}.bin::https://archive.org/download/redump.psx/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.zip/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.bin" "${_uuid}.cue::https://archive.org/download/redump.psx/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.zip/Crash%20Bandicoot%202%20-%20Cortex%20Strikes%20Back%20%28Europe%29%20%28En%2CFr%2CDe%2CEs%2CIt%29%20%28EDC%29.cue" - "${_app_id}.desktop" - "${_app_id}.png") + "psx-template.desktop" + "${_app_id}.png::https://upload.wikimedia.org/wikipedia/en/e/e6/Crash_Bandicoot_2_Cortex_Strikes_Back_Game_Cover.jpg") sha256sums=("9499b6ad8f0cfdb99ee8ae40bc98776f56fdaa91d01e55448f62aaa2c0df7853" "6a4bf93ea6b904303254faa946d877cd705893c17458acb2549606dae586fd98" - "c86c504da065221580a4751abf67da5d5be16bee8daea27806103cc21b91d329" - "410cf854f85ff43c4720ef5cf01a32d92dddd96890abbbd94193adb83fa78785") + "fdfbc31089c3e1b63e92ff58618262b72d1f8baba11a1688f0b8ab3a932d70c6" + "25672f46b68b4108344292ca5265bc78394ddbc39f3431d2fae6d4bccf8e2773") + +prepare() { + mv psx-template.desktop "${_app_id}.desktop" + sed -i "s/%_title%/${_title}/g" "${_app_id}.desktop" + sed -i "s/%pkgdesc%/${pkgdesc}/g" "${_app_id}.desktop" + sed -i "s/%_app_id%/${_app_id}/g" "${_app_id}.desktop" + sed -i "s/%_uuid%/${_uuid}/g" "${_app_id}.desktop" + + sed -i -e "s/${_rom_filename}/${_uuid}/g" "${_uuid}.cue" +} package() { local _game="${pkgdir}/usr/games/${_app_id}" - install -Dm755 "${_uuid}.bin" "${_game}/${_uuid}.bin" - install -Dm755 "${_uuid}.cue" "${_game}/${_uuid}.cue" + install -Dm644 "${_uuid}.bin" "${_game}/${_uuid}.bin" + install -Dm644 "${_uuid}.cue" "${_game}/${_uuid}.cue" install -Dm755 "${_app_id}.desktop" "${pkgdir}/usr/share/applications/${_app_id}.desktop" - install -Dm755 "${_app_id}.png" "${pkgdir}/usr/share/icons/${_app_id}.png" + install -Dm644 "${_app_id}.png" "${pkgdir}/usr/share/icons/${_app_id}.png" } diff --git a/com.naughtydog.CrashBandicoot2.desktop b/com.naughtydog.CrashBandicoot2.desktop deleted file mode 100644 index 78cefa5f4b4e..000000000000 --- a/com.naughtydog.CrashBandicoot2.desktop +++ /dev/null @@ -1,18 +0,0 @@ -[Desktop Entry] -Name=Crash Bandicoot 2 - Cortex Strikes Back (SCES-00967) -GenericName=Crash Bandicoot 2 -Comment=Second installment of the Crash Bandicoot franchise for PlayStation. -Type=Application -TryExec=duckstation-qt -Exec=duckstation-qt -fullscreen "/usr/games/com.naughtydog.CrashBandicoot2/SCES-00967.cue" -Icon=com.naughtydog.CrashBandicoot2 -Categories=Games; -Terminal=false -Keywords=Crash -Actions=preferences; - -[Desktop Action preferences] -Name=Preferences -Exec=duckstation-qt - -X-Desktop-File-Install-Version=0.26 diff --git a/com.naughtydog.CrashBandicoot2.png b/com.naughtydog.CrashBandicoot2.png Binary files differdeleted file mode 100644 index c3eb77d09dc0..000000000000 --- a/com.naughtydog.CrashBandicoot2.png +++ /dev/null diff --git a/psx-template.desktop b/psx-template.desktop new file mode 100644 index 000000000000..64cf24f03691 --- /dev/null +++ b/psx-template.desktop @@ -0,0 +1,17 @@ +[Desktop Entry] +Name=%_title% (%_uuid%) +Comment=%pkgdesc% +Type=Application +TryExec=duckstation-qt +Exec=duckstation-nogui -fullscreen "/usr/games/%_app_id%/%_uuid%.cue" +Icon=%_app_id% +Terminal=false +Categories=Games; +Keywords=PSX +Actions=preferences; + +[Desktop Action preferences] +Name=Preferences +Exec=duckstation-qt + +X-Desktop-File-Install-Version=0.26 |