summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d5e38daa2c052471847404f9f646385999eaac6 (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: Clément Lassieur <clement@lassieur.org>
pkgname="brother-hll2360d"
pkgver="3.2.0_1"
pkgrel="1"
pkgdesc="Brother LPR and CUPS driver for HL-L2360DN, HL-L2360DW, HL-L2365DW"
url="https://www.brother.com"
license=('GPL')
arch=('i686' 'x86_64')
depends=('cups')
depends_x86_64=('lib32-glibc')

source=(brother-hll2360d.patch
	https://download.brother.com/welcome/dlf101915/hll2360dcupswrapper-${pkgver//_/-}.i386.rpm
	https://download.brother.com/welcome/dlf101914/hll2360dlpr-${pkgver//_/-}.i386.rpm)
md5sums=('c660e4907fa7594f99305c9862414c03'
         '881e966395a2d67ee648046c9547031b'
         '2a0e27f233d8cbb5dc8e332230db03e7')

prepare() {
  patch -p1 < "$srcdir/brother-hll2360d.patch"
}

package() {
  install -d "$pkgdir/usr/lib/cups/filter/"
  install -d "$pkgdir/usr/share/cups/model/"

  cp -R "$srcdir/opt/brother" "$pkgdir/usr/share/brother"

  ln -s "/usr/share/brother/Printers/HLL2360D/cupswrapper/brother_lpdwrapper_HLL2360D" "$pkgdir/usr/lib/cups/filter/"
  ln -s "/usr/share/brother/Printers/HLL2360D/cupswrapper/brother-HLL2360D-cups-en.ppd" "$pkgdir/usr/share/cups/model/"
}