summaryrefslogtreecommitdiff
path: root/Ports/VVVVVV/package.sh
diff options
context:
space:
mode:
authorGrigoris Pavlakis <grigpavl@ece.auth.gr>2022-06-09 01:48:13 +0300
committerLinus Groh <mail@linusgroh.de>2022-06-17 19:18:33 +0100
commit51315c0b1d92985aa90acb42ead6e504a1ae3d03 (patch)
treeaede477441ea9843a9f54b9ac2f5d68fb52f223f /Ports/VVVVVV/package.sh
parent2a45d3030250aefd739e6ded94a9020856b6c466 (diff)
downloadserenity-51315c0b1d92985aa90acb42ead6e504a1ae3d03.zip
Ports: Add VVVVVV port
Co-Authored-By: Tim Schumacher <timschumi@gmx.de> (thanks for the line ending and assert() troubleshooting)
Diffstat (limited to 'Ports/VVVVVV/package.sh')
-rwxr-xr-xPorts/VVVVVV/package.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/Ports/VVVVVV/package.sh b/Ports/VVVVVV/package.sh
new file mode 100755
index 0000000000..8e5004f684
--- /dev/null
+++ b/Ports/VVVVVV/package.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port='VVVVVV'
+version='2.3.6'
+useconfigure='true'
+auth_type='sha256'
+files="https://github.com/TerryCavanagh/VVVVVV/archive/refs/tags/${version}.tar.gz VVVVVV-${version}.tar.gz a3366aab9e8462d330044ab1ec63927e9f5c3801c0ed96b24f08c553dcb911e9"
+configopts=(
+ "-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
+ "-DCMAKE_BUILD_TYPE=Release"
+ "-Sdesktop_version"
+)
+depends=("SDL2" "SDL2_mixer")
+icon_file='desktop_version/icon.ico'
+launcher_name='VVVVVV'
+launcher_category='Games'
+launcher_command='/opt/VVVVVV/VVVVVV'
+
+configure() {
+ run cmake "${configopts[@]}"
+}
+
+install() {
+ run mkdir -p "${SERENITY_INSTALL_ROOT}/opt/VVVVVV"
+ run cp VVVVVV "${SERENITY_INSTALL_ROOT}/opt/VVVVVV"
+ echo -e "\033[0;34m=====================================================================\033[0m"
+ echo -e "\033[1;31mNOTE: \033[0mVVVVVV needs the assets from the original game to work."
+ echo -e "Place the \033[1;33mdata.zip\033[0m file from the Make and Play edition AS IS"
+ echo -e "under \033[1;32m${SERENITY_INSTALL_ROOT}/opt/VVVVVV\033[0m."
+ echo -e "\033[0;34m=====================================================================\033[0m"
+}