mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2026-06-18 19:35:47 +00:00
136 lines
4.5 KiB
Bash
136 lines
4.5 KiB
Bash
#!/bin/bash
|
|
CUR_DIR=${PWD}
|
|
|
|
SU_CMD=sudo
|
|
if [[ -z "$(command -v $SU_CMD)" ]]; then
|
|
SU_CMD=doas
|
|
if [[ -z "$(command -v $SU_CMD)" ]]; then
|
|
echo "Neither sudo or doas were detected on the system."
|
|
exit
|
|
fi
|
|
fi
|
|
|
|
|
|
if [ -z $LIBEXEC_DIR ]; then
|
|
LIBEXEC_DIR=lib
|
|
UAC_LIBEXEC_DIR=lib
|
|
fi
|
|
|
|
if [[ "$(command -v dnf)" ]]; then # Automatically change for Fedora
|
|
LIBEXEC_DIR=libexec
|
|
UAC_LIBEXEC_DIR=libexec/kf6
|
|
fi
|
|
|
|
mkdir -p repos
|
|
mkdir -p manifest
|
|
cd repos
|
|
|
|
# libplasma last
|
|
git clone https://gitgud.io/aeroshell/libplasma.git libplasma
|
|
cd libplasma
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/libplasma_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# uac-polkit-agent
|
|
git clone https://gitgud.io/aeroshell/uac-polkit-agent.git uac-polkit-agent
|
|
cd uac-polkit-agent
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBEXECDIR=$UAC_LIBEXEC_DIR -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/uac-polkit-agent_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# SMOD
|
|
git clone https://gitgud.io/aeroshell/smod.git smod
|
|
cd smod
|
|
git pull
|
|
bash install.sh $@
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/smod_install_manifest.txt"
|
|
cp smodglow/build-wl/install_manifest.txt "$CUR_DIR/manifest/smodglow_install_manifest.txt"
|
|
|
|
if [[ ! "$*" == *"--skip-x11"* ]]
|
|
then
|
|
cp smodglow/build/install_manifest.txt "$CUR_DIR/manifest/smodglow-x11_install_manifest.txt"
|
|
fi
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aeroshell Workspace
|
|
git clone https://gitgud.io/aeroshell/aeroshell-workspace.git aeroshell-workspace
|
|
cd aeroshell-workspace
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
$SU_CMD update-mime-database "/usr/local/share/mime"
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/aeroshell-workspace_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aeroshell KWin
|
|
git clone https://gitgud.io/aeroshell/aeroshell-kwin-components.git aeroshell-kwin-components
|
|
cd aeroshell-kwin-components
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKWIN_BUILD_WAYLAND=ON -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/aeroshell-kwin-components_install_manifest.txt"
|
|
if [[ ! "$*" == *"--skip-x11"* ]]
|
|
then
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKWIN_BUILD_WAYLAND=OFF -DKWIN_INSTALL_MISC=OFF -B build_x11 . || exit 1
|
|
cmake --build build_x11 || exit 1
|
|
$SU_CMD cmake --install build_x11 || exit 1
|
|
cp build_x11/install_manifest.txt "$CUR_DIR/manifest/aeroshell-kwin-components-x11_install_manifest.txt"
|
|
fi
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aeroshell SDDM KCM
|
|
git clone https://gitgud.io/aeroshell/aeroshell-sddm-kcm.git aeroshell-sddm-kcm
|
|
cd aeroshell-sddm-kcm
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/aeroshell-sddm-kcm_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aerothemeplasma icons
|
|
git clone https://gitgud.io/aeroshell/atp/aerothemeplasma-icons aerothemeplasma-icons
|
|
cd aerothemeplasma-icons
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/icons_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aerothemeplasma sounds
|
|
git clone https://gitgud.io/aeroshell/atp/aerothemeplasma-sounds aerothemeplasma-sounds
|
|
cd aerothemeplasma-sounds
|
|
git pull
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/sounds_install_manifest.txt"
|
|
cd "$CUR_DIR/repos"
|
|
|
|
# Aerothemeplasma
|
|
cd "$CUR_DIR"
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBEXECDIR=$LIBEXEC_DIR -B build . || exit 1
|
|
cmake --build build || exit 1
|
|
$SU_CMD cmake --install build || exit 1
|
|
cp build/install_manifest.txt "$CUR_DIR/manifest/aerothemeplasma_install_manifest.txt"
|
|
if [[ ! "$*" == *"--skip-x11"* ]]
|
|
then
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBEXECDIR=$LIBEXEC_DIR -DINSTALL_X11_COMPONENTS=ON -B build_x11 . || exit 1
|
|
cmake --build build_x11 || exit 1
|
|
$SU_CMD cmake --install build_x11 || exit 1
|
|
cp build_x11/install_manifest.txt "$CUR_DIR/manifest/aerothemeplasma-x11_install_manifest.txt"
|
|
fi
|
|
cd "$CUR_DIR/repos"
|
|
|
|
|
|
echo "Done."
|