diff options
author | Ryan Greenup | 2020-07-24 16:47:55 +1000 |
---|---|---|
committer | Ryan Greenup | 2020-07-24 16:47:55 +1000 |
commit | 7243aec9c7ed278169217328e5c6a271373bc30a (patch) | |
tree | 375b206a14cdd7a203c7bac2a3c47cb67e8fba18 | |
parent | 0bf15430f2c6b23aea88693a768fcf23b0278857 (diff) | |
download | aur-7243aec9c7ed278169217328e5c6a271373bc30a.tar.gz |
Removed many comments as suggested by @caltlgin
-rw-r--r-- | PKGBUILD | 101 |
1 files changed, 0 insertions, 101 deletions
@@ -62,105 +62,4 @@ chmod 700 "${pkgdir}/$HOME" chmod 755 "${pkgdir}/$HOME/.cadmus" chmod 700 "${pkgdir}/$HOME/.local" -################################################################################ -# Not all dependencies are fatal, maybe just a warning would be kinder? -# Also this is kind of a failsafe because I can also test the binary -# Name rather than look for the package which could be installed -# npm/cargo/pip/conda etc... -################################################################################ - -check_for_dependencies () { - - depLog="$(mktemp)" - - for i in ${depArray[@]}; do - command -v "$i" >/dev/null 2>&1 || { echo $i >> "${depLog}"; } - done - - if [[ $(cat "${depLog}") == "" ]]; then - echo -e "\nAll Dependencies Satisfied\n" - else - echo -e "\e[1;31m \nThe Following Dependencies are Recommended \e[0m \n" - echo -e " \e[1;31m --------------------------------------\e[0m " - echo -e "\e[1;32m \n" - addBullets "$(cat "${depLog}")" - echo -e "\e[0m \n" - echo -e "They are listed in \e[1;34m "${depLog}" \e[0m \n" - fi - - echo "Press any key to continue" - read -d '' -s -n1 - - -} - -declare -a depArray=( - "highlight" - "node" - "nvim" - "fzf" - "code" - "sk" - "rg" - "perl" - "tectonic" - "stow" - "python" - "tmsu" - "ranger" - "mdcat" - "jq" - "shift" - "xclip" - "sd" - "fd" - "sed" - "cut" - "grep" - "find" - "realpath" - "tectonic" - "texlive-core" - "jq" - "recoll" - ) - -addBullets() { - command -v sed >/dev/null 2>&1 || { echo >&2 "I require sed but it's not installed. Aborting."; exit 1; } - echo "$1" | sed 's/^/\t‣\ /g' } - -# check_for_dependencies - - - -# TODO hmm, the config file would probably have to go in ~/.config/cadmus/config.json for this to work well. -# TODO Need to fix file system permissions error -# TODO I need to have a centralised list of dependencies, currently they are listed in: -# -# 1. README -# 1. Install.sh -# 1. This MakePkg -# 1. up in the depends Array -# 1. here in the depArray warning -# TODO Should I be installing everything to ~/.cadmus or should I throw all the scripts into /usr/bin? -# -# -# PROS; the portability is convenient and motivates users to look at the scripts -# and investigate them -# PROS; the portability means I don't have to package for other distros -# -# CONS; maybe having the individual scripts in /usr/bin would be simpler to install -# CONS; maybe having the individual scripts in PATH would be better for users -# -} - - - - -# Could I make building TMSU a part of the pkg build or should I leave that seperate??? - -# If I wanted to search for packages that contain a binary (say ip) i could do: - -#sudo pacman -Fy -#sudo pacman -F ip |