summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fa2ae1610b34f98aa2a9e9ffbb2d35ddbcf2a6fb (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
31
# Maintainer: Alex Epelde <alex@epelde.net>
# Contributor: Tim Cassels <cassels2025@gmail.com>

pkgname=brother-hll8360cdw-cups-bin
_printer=hll8360cdw
pkgver=1.5.0
pkgrel=1
pkgdesc="CUPS wrapper for Brother HL-L8360CDW printer"
arch=("i686" "x86_64")
url="http://support.brother.com/g/b/producttop.aspx?c=us&lang=en&prod=hll8360cdw_us_eu_as"
license=("EULA")
groups=("base-devel")
source=("https://download.brother.com/welcome/dlf103246/${_printer}cupswrapper-1.5.0-0.i386.deb")
md5sums=('3eff17863c6e3af61ca52d88aa5d30b4')

package() {
    tar -xf data.tar.gz -C "$pkgdir"

    cd "$pkgdir"

    install -Dm644 "opt/brother/Printers/$_printer/cupswrapper/brother_${_printer}_printer_en.ppd" \
        -t "usr/share/cups/model/Brother"

    install -Dm644 "opt/brother/Printers/$_printer/cupswrapper/brother_${_printer}_printer_en.ppd" \
        -t "usr/share/ppd/Brother"

    mkdir -p -m755 "$pkgdir/usr/lib/cups/filter"
    ln -s "/opt/brother/Printers/$_printer/cupswrapper/brother_lpdwrapper_$_printer" \
        "usr/lib/cups/filter"

}