This file is for me to remember how to build xdelta/gptokeyb/gptokeyb2/sdl_resolution
TODO: document the others.
DEVICE_ARCH=" aarch64"
git clone " https://github.com/PortsMaster/gptokeyb2.git"
cd gptokeyb2
mkdir build
cd build
cmake ..
make
patchelf --replace-needed libinterpose.so libinterpose.$DEVICE_ARCH .so gptokeyb2
patchelf --set-soname libinterpose.$DEVICE_ARCH .so lib/libinterpose.so
mv lib/libinterpose.so libinterpose.$DEVICE_ARCH .so
mv gptokeyb2 gptokeyb2.$DEVICE_ARCH
Compile liblzma statically
./configure --enable-static=yes --enable-shared=no
make -j4
sudo make install
Compile xdelta3 statically with liblzma
git clone " https://github.com/jmacd/xdelta.git"
cd xdelta
git checkout release3_1_apl
wget https://patch-diff.githubusercontent.com/raw/jmacd/xdelta/pull/241.diff
git apply 241.diff
cd xdelta3
./generate_build_files.sh
LDFLAGS=-L/usr/local/lib/ CXXFLAGS=-I/usr/local/include ./configure --with-liblzma
make -j4
strip xdelta3