blob: d391c221ae84a41ce3a7581b1dcf18afba82cedb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Joshua Schmeder <joshua@schmeder.dev>
pkgname=archipelagomw-bin
_ghrel=0.5.1
pkgver=0.5.1.Hotfix1
pkgrel=2
pkgdesc="A Multi-Game Randomizer and Server"
arch=("x86_64")
url="https://github.com/ArchipelagoMW/Archipelago"
license=("MIT")
depends=("python-colorama" "python-websockets" "python-yaml" "python-jellyfish" "python-jinja" "python-schema" "python-kivy" "python-bsdiff4" "python-platformdirs" "python-certifi" "cython" "python-cymem" "python-orjson" "python-typing_extensions" "xsel" "xclip")
optdepends=("mtdev: Multi-touch device support")
source=("https://github.com/ArchipelagoMW/Archipelago/releases/download/${_ghrel}/Archipelago_${pkgver}_linux-x86_64.tar.gz")
sha512sums=('1129e44a5069df9ddacc491d25dc639f392f6b0d63a63b6c182eb06491fb998fe5ba538459adfcb0e4d59ba49c249220e0b87d2bd75b85d35c5289e84add5f67')
package() {
install -d "$pkgdir/opt"
cp -r "$srcdir/Archipelago/" "$pkgdir/opt"
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/applications"
while IFS= read -r -d '' i; do
file="${i##*/}"
# wrapper for binaries to run in the install dir
cat <<EOF >"$pkgdir/usr/bin/$file"
#!/bin/bash
cd /opt/Archipelago
./$file "\$@"
EOF
chmod +x "$pkgdir/usr/bin/$file"
# desktop entries
if [ "$ARCHIPELAGO_ALL_DESKTOPS" = "1" ]; then
cat <<EOF >"$pkgdir/usr/share/applications/$file.desktop"
[Desktop Entry]
Version=1.0
Exec=/opt/Archipelago/$file
Path=/opt/Archipelago/
Name=$file
Type=Application
Icon=/opt/Archipelago/icon.png
Categories=Game;
Keywords=multi-game;randomizer;
EOF
fi
done < <(find "$pkgdir/opt/Archipelago" -maxdepth 1 -type f -name "Archipelago*" -executable -print0)
if [ "$ARCHIPELAGO_ALL_DESKTOPS" != "1" ]; then
cat <<EOF >"$pkgdir/usr/share/applications/ArchipelagoLauncher.desktop"
[Desktop Entry]
Version=1.0
Exec=/opt/Archipelago/ArchipelagoLauncher
Path=/opt/Archipelago/
Name=Archipelago Launcher
Comment=Multi-Game Randomizer and Server
Type=Application
Icon=/opt/Archipelago/icon.png
Categories=Game;
Keywords=multi-game;randomizer;
EOF
fi
}
|