Skip to content
Snippets Groups Projects
prepare 821 B
Newer Older
akiraohgaki's avatar
akiraohgaki committed
#!/bin/bash

PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"

akiraohgaki's avatar
akiraohgaki committed
if [[ ! -d "${PROJDIR}/lib/qtil" ]]; then
akiraohgaki's avatar
akiraohgaki committed
    git clone https://github.com/akiraohgaki/qtil.git -b release-0.4.0 --single-branch --depth=1 "${PROJDIR}/lib/qtil"
akiraohgaki's avatar
akiraohgaki committed
fi
akiraohgaki's avatar
akiraohgaki committed

akiraohgaki's avatar
akiraohgaki committed
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate" ]]; then
akiraohgaki's avatar
akiraohgaki committed
    git clone https://github.com/AppImage/AppImageUpdate.git -b continuous --single-branch --depth=1 "${PROJDIR}/lib/AppImageUpdate"
akiraohgaki's avatar
akiraohgaki committed
    git -C "${PROJDIR}/lib/AppImageUpdate" submodule update --init --recursive #--depth=1
akiraohgaki's avatar
akiraohgaki committed
fi
akiraohgaki's avatar
akiraohgaki committed
if [[ ! -d "${PROJDIR}/lib/AppImageUpdate-prebuilt" ]]; then
akiraohgaki's avatar
akiraohgaki committed
    mkdir "${PROJDIR}/lib/AppImageUpdate-prebuilt"
    cd "${PROJDIR}/lib/AppImageUpdate-prebuilt"
akiraohgaki's avatar
akiraohgaki committed
    cmake "${PROJDIR}/lib/AppImageUpdate" -DUSE_SYSTEM_CURL=ON -DBUILD_CPR_TESTS=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
akiraohgaki's avatar
akiraohgaki committed
    make libappimageupdate_static