summarylogtreecommitdiffstats
path: root/brother-mfcl8900cdw-cups.install
blob: c3c4bd67af71d30e061fdc7f492e612df0efed3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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() {
    note "This wrapper works with brother-mfcl8900cdw-lpr separately available in the AUR"
    note "If Brother MFC-L8900CDW doesn't show up in the list of models in CUPS,
    click the Choose File button under the list and give it

    /usr/share/cups/model/brother_mfcl8900cdw_printer_en.ppd

    and if that also fails, try

    /opt/brother/Printers/mfcl8900cdw/cupswrapper/brother_mfcl8900cdw_printer_en.ppd"
}

post_upgrade() {
    post_install
}