فهرست منبع

Ports: Set `port` to match the port's directory

We currently have no valid use case for having a `port` property
different from the directory name the port's residing in. We do have
issues when this is the case when referencing dependencies, so let's
make sure all ports have a sensible `port` property to begin with.
Jelle Raaijmakers 3 سال پیش
والد
کامیت
d53c602e11

+ 4 - 3
Ports/SDLPoP/package.sh

@@ -1,11 +1,12 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=PrinceOfPersia
+port=SDLPoP
 useconfigure=true
 version=git
 depends=("SDL2" "SDL2_image")
-workdir=SDLPoP-86988c668eeaa10f218e1d4938fc5b4e42314d68
+commitid="86988c668eeaa10f218e1d4938fc5b4e42314d68"
+workdir="${port}-${commitid}"
 configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
-files="https://github.com/NagyD/SDLPoP/archive/86988c668eeaa10f218e1d4938fc5b4e42314d68.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
+files="https://github.com/NagyD/SDLPoP/archive/${commitid}.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
 auth_type=sha256
 launcher_name="Prince of Persia"
 launcher_category=Games

+ 2 - 1
Ports/dungeonrush/package.sh

@@ -1,7 +1,8 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=DungeonRush
+port=dungeonrush
 version=1.1-beta
 useconfigure=true
+workdir="DungeonRush-${version}"
 files="https://github.com/Rapiz1/DungeonRush/archive/refs/tags/v${version}.tar.gz v${version}.tar.gz 295b83cb023bf5d21318992daee125399892bdf16a87c835dfc90b841c929eda"
 auth_type=sha256
 configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")

+ 1 - 2
Ports/freedink/package.sh

@@ -1,11 +1,10 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=FreeDink
+port=freedink
 version=109.6
 useconfigure="true"
 use_fresh_config_sub="true"
 config_sub_path=autotools/config.sub
 depends=("SDL2" "SDL2_image" "SDL2_mixer" "SDL2_ttf" "SDL2_gfx" "gettext" "fontconfig" "glm")
-workdir="freedink-${version}"
 freedink_data="freedink-data-1.08.20190120"
 files="https://ftpmirror.gnu.org/gnu/freedink/freedink-${version}.tar.gz freedink-${version}.tar.gz
 https://ftpmirror.gnu.org/gnu/freedink/freedink-${version}.tar.gz.sig freedink-${version}.tar.gz.sig

+ 3 - 3
Ports/imagemagick/package.sh

@@ -1,9 +1,9 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=ImageMagick
+port=imagemagick
 version=7.1.0-23
-workdir="${port}-${version}"
+workdir="ImageMagick-${version}"
 useconfigure="true"
-files="https://github.com/ImageMagick/ImageMagick/archive/refs/tags/${version}.tar.gz imagemagick-v${version}.tar.gz 62c24362891d0af2be9a81d01117195ba0ec8e6982c7568195a33019bfc82188"
+files="https://github.com/ImageMagick/ImageMagick/archive/refs/tags/${version}.tar.gz ${port}-v${version}.tar.gz 62c24362891d0af2be9a81d01117195ba0ec8e6982c7568195a33019bfc82188"
 auth_type=sha256
 configopts=("--host=${SERENITY_ARCH}")
 depends=("libpng" "libtiff" "libjpeg")

+ 2 - 1
Ports/sam/package.sh

@@ -1,6 +1,7 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=SAM
+port=sam
 version=c86ea395743b8ea4ad071c2167fd1f7f96648f7b
+workdir="SAM-${version}"
 files="https://github.com/vidarh/SAM/archive/${version}.tar.gz ${version}.tar.gz 1f534245e2c7a096de5f886fd96ea1ad966c4e674c1ed91e0c6a59662e8d6c11"
 auth_type=sha256
 depends=("SDL2")

+ 3 - 3
Ports/stpuzzles/package.sh

@@ -1,10 +1,10 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=SimonTathamsPuzzles
+port=stpuzzles
 useconfigure=true
 version=git
-workdir=stpuzzles-main
+workdir="${port}-main"
 configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
-files="https://github.com/SerenityPorts/stpuzzles/archive/refs/heads/main.zip stpuzzles.zip"
+files="https://github.com/SerenityPorts/stpuzzles/archive/refs/heads/main.zip ${port}.zip"
 
 configure() {
     run cmake "${configopts[@]}" -DCMAKE_CXX_FLAGS="-std=c++2a -O2"

+ 3 - 2
Ports/vlang/package.sh

@@ -1,8 +1,9 @@
 #!/usr/bin/env -S bash ../.port_include.sh
-port=v
+port=vlang
 auth_type=sha256
 version=weekly.2021.31
-files="https://codeload.github.com/vlang/v/tar.gz/refs/tags/$version v-$version.tar.gz b0daf0a2e2cb6d463710952f4d2e8705c17d02a9270355b20861ff3fd5f72563"
+workdir="v-${version}"
+files="https://codeload.github.com/vlang/v/tar.gz/refs/tags/${version} v-${version}.tar.gz b0daf0a2e2cb6d463710952f4d2e8705c17d02a9270355b20861ff3fd5f72563"
 
 build() {
     (