mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
37 lines
945 B
Text
37 lines
945 B
Text
# Colored makepkg-like functions
|
|
msg_blue() {
|
|
printf "${BLUE}==>${BOLD} $1${ALL_OFF}\n"
|
|
}
|
|
|
|
note1() {
|
|
printf "${BLUE}==>${YELLOW} NOTE:${WHITE} $1${ALL_OFF}\n"
|
|
}
|
|
|
|
note2() {
|
|
printf "${BLUE}==> ${WHITE} $1${ALL_OFF}\n"
|
|
}
|
|
|
|
ALL_OFF="$(tput sgr0)"
|
|
BOLD="${ALL_OFF}$(tput bold)"
|
|
BLACK="${BOLD}$(tput setaf 0)"
|
|
RED="${BOLD}$(tput setaf 1)"
|
|
GREEN="${BOLD}$(tput setaf 2)"
|
|
YELLOW="${BOLD}$(tput setaf 3)"
|
|
BLUE="${BOLD}$(tput setaf 4)"
|
|
MAGENTA="${BOLD}$(tput setaf 5)"
|
|
CYAN="${BOLD}$(tput setaf 6)"
|
|
WHITE="${BOLD}$(tput setaf 7)"
|
|
|
|
post_install() {
|
|
if /usr/lib/ld-linux-x86-64.so.2 --help | grep -qsE '^\s+x86-64-v3.*supported.*$' ; then
|
|
note1 "Custom flags should be put directly in: ~/.config/thorium-flags.conf"
|
|
note2 "The launcher is called: 'thorium-browser'"
|
|
else
|
|
note1 "Your processor does not support SSE3 instructions."
|
|
note2 "thorium-browser may not work on your computer."
|
|
fi
|
|
}
|
|
|
|
post_upgrade() {
|
|
post_install
|
|
}
|