mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-13 22:02:34 +00:00
21 lines
363 B
Bash
Executable File
21 lines
363 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
install() {
|
|
mkdir ~/pkgbuilds &>/dev/null
|
|
git clone https://github.com/psic4t/qcal.git ~/pkgbuilds/qcal
|
|
pushd ~/pkgbuilds/qcal || exit 1
|
|
(
|
|
make && sudo make install
|
|
)
|
|
popd
|
|
}
|
|
|
|
uninstall() {
|
|
sudo rm /usr/local/bin/qcal
|
|
rm -rf ~/pkgbuilds/qcal
|
|
}
|
|
|
|
arg=${1:-""}
|
|
[[ $arg == "install" ]] && install
|
|
[[ $arg == "uninstall" ]] && uninstall
|