mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
28 lines
880 B
Bash
28 lines
880 B
Bash
#!/bin/bash
|
|
|
|
OUTPUT=$(plasmashell --version)
|
|
IFS=' ' read -a array <<< "$OUTPUT"
|
|
VERSION="${array[1]}"
|
|
URL="https://invent.kde.org/plasma/libplasma/-/archive/v${VERSION}/libplasma-v${VERSION}.tar.gz"
|
|
ARCHIVE="libplasma-v${VERSION}.tar.gz"
|
|
SRCDIR="libplasma-v${VERSION}"
|
|
INSTALLDST="/usr/lib64/qt6/qml/org/kde/plasma/core/libcorebindingsplugin.so"
|
|
|
|
if [ ! -d ./build/${SRCDIR} ]; then
|
|
rm -rf build
|
|
mkdir build
|
|
echo "Downloading $ARCHIVE"
|
|
curl $URL -o ./build/$ARCHIVE
|
|
tar -xvf ./build/$ARCHIVE -C ./build/
|
|
echo "Extracted $ARCHIVE"
|
|
fi
|
|
|
|
cp DefaultToolTip.qml ./build/$SRCDIR/src/declarativeimports/core/private/DefaultToolTip.qml
|
|
cd ./build/$SRCDIR/
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -G Ninja ..
|
|
cmake --build . --target corebindingsplugin
|
|
sudo cp ./bin/org/kde/plasma/core/libcorebindingsplugin.so $INSTALLDST
|
|
plasmashell --replace & disown
|
|
echo "Done."
|