Skip to content

Commit

Permalink
Ports: Make files a proper array
Browse files Browse the repository at this point in the history
  • Loading branch information
timschumi authored and gmta committed Aug 8, 2023
1 parent 3c2d846 commit 284fee9
Show file tree
Hide file tree
Showing 311 changed files with 959 additions and 350 deletions.
20 changes: 4 additions & 16 deletions Ports/.port_include.sh
Original file line number Diff line number Diff line change
Expand Up @@ -317,20 +317,14 @@ func_defined fetch || fetch() {
tried_download_again=0

while true; do
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")
do_download_file "$url" "${PORT_META_DIR}/${filename}"
done

verification_failed=0

OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")

# check sha256sum if given
Expand All @@ -357,10 +351,7 @@ func_defined fetch || fetch() {
done

# extract
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename auth_sum<<< $(echo "$f")

if [ ! -f "$workdir"/.${filename}_extracted ]; then
Expand Down Expand Up @@ -435,10 +426,7 @@ clean() {
rm -rf "${PORT_BUILD_DIR}/"*
}
clean_dist() {
OLDIFS=$IFS
IFS=$'\n'
for f in $files; do
IFS=$OLDIFS
for f in "${files[@]}"; do
read url filename hash <<< $(echo "$f")
rm -f "${PORT_META_DIR}/${filename}"
done
Expand Down
4 changes: 3 additions & 1 deletion Ports/Another-World/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ version=git
depends=("SDL2" "zlib")
workdir=Another-World-Bytecode-Interpreter-master
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt" "-DSDL2_INCLUDE_DIR=${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2")
files="https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter/archive/refs/heads/master.zip master.zip 326de7622e5f83a83fce76e6032240157a9dde83c0d65319095c7e0b312af317"
files=(
"https://github.com/fabiensanglard/Another-World-Bytecode-Interpreter/archive/refs/heads/master.zip master.zip 326de7622e5f83a83fce76e6032240157a9dde83c0d65319095c7e0b312af317"
)
launcher_name="Another World"
launcher_category=Games
launcher_command="/opt/Another-World/raw --datapath=/opt/Another-World"
Expand Down
4 changes: 3 additions & 1 deletion Ports/ClassiCube/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

port='ClassiCube'
version='1.3.3'
files="https://github.com/UnknownShadow200/ClassiCube/archive/refs/tags/${version}.tar.gz ClassiCube-${version}.tar.gz f90acfeb82fd440ead6e086694d99bd1583b0174da1801687c4c3d0fcb21d83d"
files=(
"https://github.com/UnknownShadow200/ClassiCube/archive/refs/tags/${version}.tar.gz ClassiCube-${version}.tar.gz f90acfeb82fd440ead6e086694d99bd1583b0174da1801687c4c3d0fcb21d83d"
)
workdir="${port}-${version}/src/"
depends=(
'SDL2'
Expand Down
4 changes: 3 additions & 1 deletion Ports/ObjFW/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ port="ObjFW"
version="master"
commit="2903ecda7767a9563b6d3c74581b3920d32e6576"
useconfigure="true"
files="https://github.com/ObjFW/ObjFW/archive/${commit}.tar.gz ObjFW-${commit}.tar.gz ef5e3158e898415a9458f2c9a620b47f111b9a2af0bc8c48bcde4e13ae2b7727"
files=(
"https://github.com/ObjFW/ObjFW/archive/${commit}.tar.gz ObjFW-${commit}.tar.gz ef5e3158e898415a9458f2c9a620b47f111b9a2af0bc8c48bcde4e13ae2b7727"
)
workdir="ObjFW-${commit}"
use_fresh_config_sub='true'
config_sub_paths=("build-aux/config.sub")
Expand Down
4 changes: 3 additions & 1 deletion Ports/OpenJDK/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ use_fresh_config_guess='true'
config_guess_paths=("make/autoconf/build-aux/autoconf-config.guess")
use_fresh_config_sub='true'
config_sub_paths=("make/autoconf/build-aux/autoconf-config.sub")
files="https://github.com/openjdk/jdk17u-dev/archive/refs/tags/jdk-${version}-ga.tar.gz jdk-${version}-ga.tar.gz 4bd3d2534d7b584c01711e64b9e5b7e79052a1759d3fded8d64107ebc9d37dc2"
files=(
"https://github.com/openjdk/jdk17u-dev/archive/refs/tags/jdk-${version}-ga.tar.gz jdk-${version}-ga.tar.gz 4bd3d2534d7b584c01711e64b9e5b7e79052a1759d3fded8d64107ebc9d37dc2"
)
depends=("fontconfig" "libffi")

configure() {
Expand Down
12 changes: 8 additions & 4 deletions Ports/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ script simply defines some well-known variables and looks like this:
port="foo"
version="1.2.3"
useconfigure="true"
files="https://example.com/foo-${version}.tar.gz foo-${version}.tar.gz"
files=(
"https://example.com/foo-${version}.tar.gz foo-${version}.tar.gz 9acd50f9a2af37e471f761c3fe7b8dea5617e51dac802fe6c177b74abf0abb5a"
)
depends=("bar" "baz")
```

Expand Down Expand Up @@ -183,8 +185,8 @@ depends=("ncurses" "gettext")

#### `files`

A list of external files required by the port, one per line. The format of each
line is as follows:
An array of external files required by the port, one per line. The format of each
entry is as follows:

```text
URL NAME HASH
Expand All @@ -197,7 +199,9 @@ that will be used for verification.
For example:

```bash
files="https://example.com/foo-${version}.tar.xz foo-${version}.tar.xz 9acd50f9a2af37e471f761c3fe7b8dea5617e51dac802fe6c177b74abf0abb5a"
files=(
"https://example.com/foo-${version}.tar.xz foo-${version}.tar.xz 9acd50f9a2af37e471f761c3fe7b8dea5617e51dac802fe6c177b74abf0abb5a"
)
```

If a file is a compressed tar archive, a gzip compressed file or a zip
Expand Down
4 changes: 3 additions & 1 deletion Ports/RISCVEmu/package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=RISCVEmu
version=ad8ad6a0eb8591385318b2ec1cffde6078ff0185
files="https://github.com/IdanHo/RISCVEmu/archive/${version}.tar.gz RISCVEmu-${version}.tar.gz b4636284dd407e490ba6dd783b65caf8c019785285d6a86aece3860465276b33"
files=(
"https://github.com/IdanHo/RISCVEmu/archive/${version}.tar.gz RISCVEmu-${version}.tar.gz b4636284dd407e490ba6dd783b65caf8c019785285d6a86aece3860465276b33"
)

build() {
run "${CXX}" -o RISCVEmu RISCVEmu.cpp RISCV.cpp
Expand Down
4 changes: 3 additions & 1 deletion Ports/RetroArch/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ port=RetroArch
useconfigure="true"
version="1.12.0"
archive_hash="c912e32a0300f16ade827d48a4a948d5dab40b764cd1169f61108c6f5803649a"
files="https://github.com/libretro/${port}/archive/refs/tags/v${version}.tar.gz ${port}-${version}.tar.gz $archive_hash"
files=(
"https://github.com/libretro/${port}/archive/refs/tags/v${version}.tar.gz ${port}-${version}.tar.gz $archive_hash"
)
depends=("freetype" "SDL2" "zlib")

configopts=(
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2-GNUBoy/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
port=SDL2-GNUBoy
version=1.2.1
useconfigure=false
files="https://github.com/AlexOberhofer/SDL2-GNUBoy/archive/refs/tags/v${version}.tar.gz SDL2-GNUBoy-${version}.tar.gz d8b729aa88747301ed39514ad9dc857b842332ac87242993881e15125af1be20"
files=(
"https://github.com/AlexOberhofer/SDL2-GNUBoy/archive/refs/tags/v${version}.tar.gz SDL2-GNUBoy-${version}.tar.gz d8b729aa88747301ed39514ad9dc857b842332ac87242993881e15125af1be20"
)
depends=("SDL2")
4 changes: 3 additions & 1 deletion Ports/SDL2/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port='SDL2'
version='2.24.0'
useconfigure='true'
files="https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz SDL2-${version}.tar.gz 91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97"
files=(
"https://github.com/libsdl-org/SDL/releases/download/release-${version}/SDL2-${version}.tar.gz SDL2-${version}.tar.gz 91e4c34b1768f92d399b078e171448c6af18cafda743987ed2064a28954d6d97"
)
configopts=(
"-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt"
"-DPULSEAUDIO=OFF"
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2_gfx/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

port=SDL2_gfx
version=1.0.4
files="https://downloads.sourceforge.net/project/sdl2gfx/SDL2_gfx-${version}.tar.gz SDL2_gfx-${version}.tar.gz 63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262"
files=(
"https://downloads.sourceforge.net/project/sdl2gfx/SDL2_gfx-${version}.tar.gz SDL2_gfx-${version}.tar.gz 63e0e01addedc9df2f85b93a248f06e8a04affa014a835c2ea34bfe34e576262"
)
depends=("SDL2")
useconfigure=true
use_fresh_config_sub=true
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2_image/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ port='SDL2_image'
useconfigure='true'
version='2.6.2'
depends=("SDL2" "libpng" "libjpeg" "libtiff")
files="https://github.com/libsdl-org/SDL_image/releases/download/release-${version}/SDL2_image-${version}.tar.gz SDL2_image-${version}.tar.gz 48355fb4d8d00bac639cd1c4f4a7661c4afef2c212af60b340e06b7059814777"
files=(
"https://github.com/libsdl-org/SDL_image/releases/download/release-${version}/SDL2_image-${version}.tar.gz SDL2_image-${version}.tar.gz 48355fb4d8d00bac639cd1c4f4a7661c4afef2c212af60b340e06b7059814777"
)

configure() {
run ./configure \
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2_mixer/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port='SDL2_mixer'
version='2.6.2'
useconfigure='true'
files="https://github.com/libsdl-org/SDL_mixer/releases/download/release-${version}/SDL2_mixer-${version}.tar.gz SDL2_mixer-${version}.tar.gz 8cdea810366decba3c33d32b8071bccd1c309b2499a54946d92b48e6922aa371"
files=(
"https://github.com/libsdl-org/SDL_mixer/releases/download/release-${version}/SDL2_mixer-${version}.tar.gz SDL2_mixer-${version}.tar.gz 8cdea810366decba3c33d32b8071bccd1c309b2499a54946d92b48e6922aa371"
)
depends=("libmodplug" "libmpg123" "libvorbis" "SDL2" "timidity")

configure() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2_net/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ configopts=(
"--disable-static"
"--enable-shared"
)
files="https://github.com/libsdl-org/SDL_net/releases/download/release-${version}/SDL2_net-${version}.tar.gz SDL2_net-${version}.tar.gz 4e4a891988316271974ff4e9585ed1ef729a123d22c08bd473129179dc857feb"
files=(
"https://github.com/libsdl-org/SDL_net/releases/download/release-${version}/SDL2_net-${version}.tar.gz SDL2_net-${version}.tar.gz 4e4a891988316271974ff4e9585ed1ef729a123d22c08bd473129179dc857feb"
)
depends=("SDL2")
4 changes: 3 additions & 1 deletion Ports/SDL2_sound/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ _commit='301135a6d0d9bb77c9da0b7f809e9a10d579610f'
workdir="SDL_sound-${_commit}"
useconfigure='true'
depends=('SDL2')
files="https://github.com/icculus/SDL_sound/archive/${_commit}.zip ${_commit}.zip d29f90dd5abacf9f818f0b1567fab6b3dc6292d0a942e8e8d1e8f84130eea7a1"
files=(
"https://github.com/icculus/SDL_sound/archive/${_commit}.zip ${_commit}.zip d29f90dd5abacf9f818f0b1567fab6b3dc6292d0a942e8e8d1e8f84130eea7a1"
)
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")

configure() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL2_ttf/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port='SDL2_ttf'
version='2.20.1'
useconfigure='true'
files="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${version}/SDL2_ttf-${version}.tar.gz SDL2_ttf-${version}.tar.gz 78cdad51f3cc3ada6932b1bb6e914b33798ab970a1e817763f22ddbfd97d0c57"
files=(
"https://github.com/libsdl-org/SDL_ttf/releases/download/release-${version}/SDL2_ttf-${version}.tar.gz SDL2_ttf-${version}.tar.gz 78cdad51f3cc3ada6932b1bb6e914b33798ab970a1e817763f22ddbfd97d0c57"
)
depends=("SDL2" "freetype")

configure() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDLPoP/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ depends=("SDL2" "SDL2_image")
commitid="86988c668eeaa10f218e1d4938fc5b4e42314d68"
workdir="${port}-${commitid}"
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
files="https://github.com/NagyD/SDLPoP/archive/${commitid}.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
files=(
"https://github.com/NagyD/SDLPoP/archive/${commitid}.zip PoP.zip d18cae8541fb8cbcc374fd998316993d561429a83f92061bc0754337ada774c5"
)
launcher_name="Prince of Persia"
launcher_category=Games
launcher_command=/opt/PrinceOfPersia/prince
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL_mixer/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ useconfigure=true
configopts=("--disable-static")
use_fresh_config_sub=true
config_sub_paths=("build-scripts/config.sub")
files="https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${version}.tar.gz SDL_mixer-${version}.tar.gz 1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
files=(
"https://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-${version}.tar.gz SDL_mixer-${version}.tar.gz 1644308279a975799049e4826af2cfc787cad2abb11aa14562e402521f86992a"
)
depends=("libmikmod" "libvorbis" "sdl12-compat" "timidity")

# Explicitly point to the config binaries installed by our ports. Otherwise, it will
Expand Down
4 changes: 3 additions & 1 deletion Ports/SDL_sound/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version='1.0.3'
useconfigure='true'
use_fresh_config_sub='true'
depends=("sdl12-compat" "libmikmod")
files="https://www.icculus.org/SDL_sound/downloads/${port}-${version}.tar.gz ${port}-${version}.tar.gz 3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df"
files=(
"https://www.icculus.org/SDL_sound/downloads/${port}-${version}.tar.gz ${port}-${version}.tar.gz 3999fd0bbb485289a52be14b2f68b571cb84e380cc43387eadf778f64c79e6df"
)
configopts=(
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
"--enable-ogg=no"
Expand Down
4 changes: 3 additions & 1 deletion Ports/Super-Mario/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ version=git
depends=("SDL2" "SDL2_mixer" "SDL2_image")
workdir=Super-Mario-Clone-Cpp-master
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
files="https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp/archive/refs/heads/master.zip master.zip fcacc15d3b5afccb3227f982d3e05f2cfeb198f0fffd008fdcda005cb7f87f91"
files=(
"https://github.com/Bennyhwanggggg/Super-Mario-Clone-Cpp/archive/refs/heads/master.zip master.zip fcacc15d3b5afccb3227f982d3e05f2cfeb198f0fffd008fdcda005cb7f87f91"
)
launcher_name="Super Mario"
launcher_category=Games
launcher_command=/opt/Super_Mario/uMario
Expand Down
4 changes: 3 additions & 1 deletion Ports/SuperTuxKart/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ port=SuperTuxKart
useconfigure='true'
version='1.4'
archive_hash='9890392419baf4715313f14d5ad60746f276eed36eb580636caf44e2532c0f03'
files="https://github.com/supertuxkart/stk-code/releases/download/${version}/supertuxkart-${version}-src.tar.xz ${port}-${version}-src.tar.xz $archive_hash"
files=(
"https://github.com/supertuxkart/stk-code/releases/download/${version}/supertuxkart-${version}-src.tar.xz ${port}-${version}-src.tar.xz $archive_hash"
)
workdir="${port}-${version}-src"
launcher_name='SuperTuxKart'
launcher_category='Games'
Expand Down
4 changes: 3 additions & 1 deletion Ports/VVVVVV/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port='VVVVVV'
version='2.3.6'
useconfigure='true'
files="https://github.com/TerryCavanagh/VVVVVV/archive/refs/tags/${version}.tar.gz VVVVVV-${version}.tar.gz a3366aab9e8462d330044ab1ec63927e9f5c3801c0ed96b24f08c553dcb911e9"
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"
Expand Down
4 changes: 3 additions & 1 deletion Ports/aclock/package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='aclock'
version='2.3'
files="https://github.com/tenox7/aclock/raw/f9668617eac365fe8b5416cfbd801b727d8a3746/sources/aclock-unix-curses.c aclock-${version}.c 2b098996409c4740f492fb8fd5a63cb5e3e15283c2f7e3f06c75d6a9ad916669"
files=(
"https://github.com/tenox7/aclock/raw/f9668617eac365fe8b5416cfbd801b727d8a3746/sources/aclock-unix-curses.c aclock-${version}.c 2b098996409c4740f492fb8fd5a63cb5e3e15283c2f7e3f06c75d6a9ad916669"
)
depends=("ncurses")

build() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/acpica-tools/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port=acpica-tools
version='R06_28_23'
workdir="acpica-${version}"
files="https://github.com/acpica/acpica/archive/refs/tags/${version}.tar.gz acpica-${version}.tar.gz 2248799b7ca08a7711ac87d31924354ed49047507607d033bd327ba861ec4d31"
files=(
"https://github.com/acpica/acpica/archive/refs/tags/${version}.tar.gz acpica-${version}.tar.gz 2248799b7ca08a7711ac87d31924354ed49047507607d033bd327ba861ec4d31"
)


build() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/alpine/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ configopts=(
)
use_fresh_config_sub='true'
use_fresh_config_guess='true'
files="https://alpineapp.email/alpine/release/src/alpine-2.26.tar.xz alpine-${version}.tar.xz c0779c2be6c47d30554854a3e14ef5e36539502b331068851329275898a9baba"
files=(
"https://alpineapp.email/alpine/release/src/alpine-2.26.tar.xz alpine-${version}.tar.xz c0779c2be6c47d30554854a3e14ef5e36539502b331068851329275898a9baba"
)
depends=(
'openssl'
'ncurses'
Expand Down
4 changes: 3 additions & 1 deletion Ports/angband/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ version=4.2.4
workdir="Angband-${version}"
useconfigure=true
use_fresh_config_sub=true
files="https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz a07c78c1dd05e48ddbe4d8ef5d1880fcdeab55fd05f1336d9cba5dd110b15ff3"
files=(
"https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz a07c78c1dd05e48ddbe4d8ef5d1880fcdeab55fd05f1336d9cba5dd110b15ff3"
)
depends=("ncurses" "SDL2" "SDL2_image" "SDL2_ttf" "SDL2_mixer")
configopts=(
"--prefix=/usr/local"
Expand Down
4 changes: 3 additions & 1 deletion Ports/aria2/package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='aria2'
version='1.36.0'
files="https://github.com/aria2/aria2/releases/download/release-${version}/aria2-${version}.tar.xz ${port}-${version}.tar.xz 58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5"
files=(
"https://github.com/aria2/aria2/releases/download/release-${version}/aria2-${version}.tar.xz ${port}-${version}.tar.xz 58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5"
)
depends=(
"libssh2"
"libxml2"
Expand Down
4 changes: 3 additions & 1 deletion Ports/awk/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
port=awk
version=20220122
useconfigure="false"
files="https://github.com/onetrueawk/awk/archive/refs/tags/${version}.tar.gz awk-${version}.tar.gz 720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042"
files=(
"https://github.com/onetrueawk/awk/archive/refs/tags/${version}.tar.gz awk-${version}.tar.gz 720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042"
)
patchlevel=1

build() {
Expand Down
4 changes: 3 additions & 1 deletion Ports/backward-cpp/package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port='backward-cpp'
version='65a769f'
files="https://github.com/bombela/backward-cpp/tarball/65a769ffe77cf9d759d801bc792ac56af8e911a3 backward-cpp-${version}.tar.gz 233271162bf09ce7c41026416e5d6f59a66f42f83c3ea370f110980ac219144a"
files=(
"https://github.com/bombela/backward-cpp/tarball/65a769ffe77cf9d759d801bc792ac56af8e911a3 backward-cpp-${version}.tar.gz 233271162bf09ce7c41026416e5d6f59a66f42f83c3ea370f110980ac219144a"
)
workdir="bombela-backward-cpp-${version}"
useconfigure='true'
configopts=(
Expand Down
4 changes: 3 additions & 1 deletion Ports/bash/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use_fresh_config_guess='true'
config_sub_paths=("support/config.sub")
config_guess_paths=("support/config.guess")
configopts=("--disable-nls" "--without-bash-malloc")
files="https://ftpmirror.gnu.org/gnu/bash/bash-${version}.tar.gz bash-${version}.tar.gz 13720965b5f4fc3a0d4b61dd37e7565c741da9a5be24edc2ae00182fc1b3588c"
files=(
"https://ftpmirror.gnu.org/gnu/bash/bash-${version}.tar.gz bash-${version}.tar.gz 13720965b5f4fc3a0d4b61dd37e7565c741da9a5be24edc2ae00182fc1b3588c"
)

build() {
run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
Expand Down
4 changes: 3 additions & 1 deletion Ports/bass/package.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=bass
version="cd-1.2"
files="https://downloads.scummvm.org/frs/extras/Beneath%20a%20Steel%20Sky/bass-${version}.zip bass-${version}.zip 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593"
files=(
"https://downloads.scummvm.org/frs/extras/Beneath%20a%20Steel%20Sky/bass-${version}.zip bass-${version}.zip 53209b9400eab6fd7fa71518b2f357c8de75cfeaa5ba57024575ab79cc974593"
)
depends=("scummvm")

bass_resource_path="/usr/local/share/games/${port}-${version}"
Expand Down
Loading

0 comments on commit 284fee9

Please sign in to comment.