2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if command -v aseprite >/dev/null; then
|
|
|
|
echo "Aseprite is already installed"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
set -e
|
2018-05-24 12:35:12 -07:00
|
|
|
yay --needed --noconfirm -S ninja cmake libxcursor
|
2017-12-05 22:39:10 -08:00
|
|
|
rm -rf /tmp/aseprite
|
|
|
|
if git clone --recursive https://github.com/aseprite/aseprite /tmp/aseprite; then
|
|
|
|
mkdir /tmp/aseprite/build && cd /tmp/aseprite/build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..
|
|
|
|
ninja aseprite
|
|
|
|
ninja install
|
2018-05-24 12:35:12 -07:00
|
|
|
fi
|