Verified Commit 12360093 authored by Yurii Kolesnykov's avatar Yurii Kolesnykov
Browse files

Mention casks in readme file and uninstall script

parent 9c8de4d9
# Homebrew KDE
Experimental [Homebrew](http://brew.sh) tap for KDE Frameworks and Applications on macOS.
To add the this tap to your Homebrew installation:
```sh
brew untap kde-mac/kde 2> /dev/null
brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git --force-auto-update
......@@ -11,35 +9,38 @@ brew tap kde-mac/kde https://invent.kde.org/packaging/homebrew-kde.git --force-a
```
## Migration
Currently this tap is in process of migration most of frameworks to homebrew/core, so it's best practice to run `"$(brew --repo kde-mac/kde)/tools/do-caveats.sh"` in case you are seeing any issue with linking. Sorry for inconvenience.
Currently this tap is in process of migration most of frameworks to `homebrew/core`, so it's best practice to run `"$(brew --repo kde-mac/kde)/tools/do-caveats.sh"` in case you are seeing any issue with linking. Sorry for inconvenience.
## Installation
Now, the fun begins. You can either install individual frameworks via
```sh
brew install kde-mac/kde/kf5-attica
```
or you can install them all with the install.sh shell script provided in the `tools` directory:
or you can install them all with the `install.sh` shell script provided in the `tools` directory:
```sh
"$(brew --repo kde-mac/kde)/tools/install.sh"
```
## Uninstallation
## Casks
Some apps are offered in binary form via casks, so if you want to install binary package instead of formula please add `--cask` flag, e.g:
```sh
brew install --cask kde-mac/kde/kdeconnect
```
To remove all KDE Frameworks 5 packages, run:
## Upgrading Casks
Some of casks are set to track latest stable nightly build from KDE's Binary Factory, so you may upgrade them via:
```sh
brew upgrade --greedy-latest
```
## Uninstallation
To remove all KDE formulae, run:
```sh
"$(brew --repo kde-mac/kde)/tools/uninstall.sh"
```
## Installing HEAD
Currently, installing a formula installs the last released version from tarballs. However, not all frameworks and apps were released as tarballs yet or latest stable release fails to build. If you get an error saying *is a head-only formula*, that formula can only be installed from latest git and not from released packages. This can be done by passing `--HEAD` as parameter to brew.
## GUI KDE apps aren't available in Spotlight
This is a limitation of Spotlight, it just doesn’t want search in some folders, even a symlink to /Applications doesn’t help. But as workaround you may launch KDE apps from Launchpad. Aforementioned `tools/do-caveats.sh` script creates symlinks to GUI apps in `~/Applications/KDE`, making them available to be picked manually and searchable inside Launchpad. But its search is not as convenient and fast as via Spotlight.
#!/bin/bash
HOMEBREW_NO_AUTO_UPDATE=1
INSTALLED_FORMULAS_LIST=/tmp/kde/installed
INSTALLED_FORMULAS_LIST=/tmp/kde/installed_formulas
KDE_CASKS_LIST=/tmp/kde/installed_casks
mkdir -p /tmp/kde/
brew ls --formula --full-name > "${INSTALLED_FORMULAS_LIST}"
......@@ -21,7 +22,7 @@ CORE_FORMULAS=(
extra-cmake-modules
)
echo "Removing kde formulas from homebrew/core if any installed"
echo "Removing KDE formulas from homebrew/core if any installed"
for CORE_FORMULA in "${CORE_FORMULAS[@]}"; do
if grep -q "${CORE_FORMULA}" "${INSTALLED_FORMULAS_LIST}"; then
......@@ -29,6 +30,15 @@ for CORE_FORMULA in "${CORE_FORMULAS[@]}"; do
fi
done
rm "${INSTALLED_FORMULAS_LIST}"
brew ls --cask --full-name | grep '^kde-mac/kde' > "${KDE_CASKS_LIST}"
if [[ -f "${KDE_CASKS_LIST}" ]]; then
echo "Uninstalling casks from kde-mac/kde tap"
xargs brew uninstall -f < "${KDE_CASKS_LIST}"
else
echo "No casks from kde-mac/kde tap is installed"
fi
rm "${INSTALLED_FORMULAS_LIST}" "${KDE_CASKS_LIST}"
# echo "Cleaning ~/Applications/KDE"
# rm -rf "${HOME}"/Applications/KDE
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment