# Colored makepkg-like functions
msg_blue() {
    printf "${blue}==>${bold} $1${all_off}\n"
}

note() {
    printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}

all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"

post_install() {
    if [ ! -e /usr/bin/chromium ]; then
        ln -s /usr/bin/google-chrome /usr/bin/chromium
    fi
    note "Custom flags should be put directly in: ~/.config/chrome-flags.conf"
}

post_upgrade() {
    post_install
}

post_remove() {
    if [ -h /usr/bin/chromium ]; then
        rm /usr/bin/chromium
    fi
}