Download skia for aseprite branch

wget 'https://github.com/aseprite/skia/releases/download/m81-b607b32047/Skia-Linux-Release-x64.zip' -O ~/Downloads/Linux-Release-x64.zip

Clone aseprite source code

git clone --recursive https://github.com/aseprite/aseprite.git
or
git clone https://github.com/aseprite/aseprite.git
git submodule update --init --recursive

Install dependencies

apt install -y g++ ninja-build cmake libb2-dev liblz4-dev libzstd-dev libbz2-dev libx11-dev libxcursor-dev libgl1-mesa-dev libfontconfig1-dev libssl-dev

Start building

cd aseprite
mkdir skia && cd skia
unzip ~/Downloads/Skia-Linux-Release-x64.zip
mkdir ../build && cd ../build
cmake -G Ninja -DLAF_BACKEND=skia -DSKIA_DIR=../skia -DSKIA_LIBRARY_DIR=../skia/out/Release-x64 ..
ninja

Install icons

cd ../data/icons
for d in 16 32 48 64 128; do cp ase$d.png ~/.local/share/icons/hicolor/${d}x${d}/apps/aseprite.png -v; done

Install desktop file

cd ../..
sed -e '[email protected][email protected]=/home/derekdai/.local/opt/aseprite/bin/[email protected]' src/desktop/linux/aseprite.desktop >~/.local/share/applications/aseprite.desktop