15 lines
421 B
Bash
15 lines
421 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
cd /
|
|
mkdir out
|
|
git clone --branch "${ARES_VERSION:-master}" https://github.com/ares-emulator/ares
|
|
cd ares
|
|
mkdir build && cd build
|
|
cmake .. -G Ninja
|
|
cmake --build .
|
|
cmake --install . --prefix /out
|
|
sed -i 's|Exec=.*|Exec=/usr/bin/ares|' /out/share/applications/ares.desktop
|
|
sed -i 's|Icon=.*|Icon=/usr/share/icons/hicolor/256x256/apps/ares.png|' /out/share/applications/ares.desktop
|