summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2091169f047a4e58c8a32adb159b273fadfa8f75 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Jordan Selanders <jordan.selanders@firstoncolour.com>
pkgname="brother-hll6200dw"
pkgver="3.2.0_1"
pkgrel=1
pkgdesc="Brother HL-L6200DW CUPS driver"
arch=('i686' 'x86_64')
url="http://brother.com"
license=('GPL')
depends=('cups')
depends_x86_64=('lib32-glibc')
source=("https://download.brother.com/welcome/dlf102426/hll6200dwlpr-3.2.0-1.i386.rpm"
		"https://download.brother.com/welcome/dlf102427/hll6200dwcupswrapper-3.2.0-1.i386.rpm"
		"brother-hll6200dw.patch")
md5sums=('f3c49178cf4d661850717ca54bbd21ae'
		 'b899e0b58f58422e24df8b1159981222'
		 '042f2f42b5641add7f2f28731bdbfc57')

prepare() {
	patch -p1 < brother-hll6200dw.patch
}

package() {
	cp -a "$srcdir/var" "$pkgdir"

	install -Dm644 \
		"$srcdir/opt/brother/Printers/HLL6200DW/cupswrapper/brother-HLL6200DW-cups-en.ppd" \
		"$pkgdir/usr/share/cups/model/brother-HLL6200DW-cups-en.ppd"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/cupswrapper/brother_lpdwrapper_HLL6200DW" \
		"$pkgdir/usr/lib/cups/filter/brother_lpdwrapper_HLL6200DW"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/cupswrapper/paperconfigml1" \
		"$pkgdir/usr/share/Brother/Printers/HLL6200DW/cupswrapper/paperconfigml1"

	install -Dm644 \
		"$srcdir/opt/brother/Printers/HLL6200DW/inf/brHLL6200DWfunc" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/inf/brHLL6200DWfunc"

	install -Dm644 \
		"$srcdir/opt/brother/Printers/HLL6200DW/inf/brHLL6200DWrc" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/inf/brHLL6200DWrc"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/inf/setupPrintcap" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/inf/setupPrintcap"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/lpd/brprintconflsr3" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/lpd/brprintconflsr3"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/lpd/filter_HLL6200DW" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/lpd/filter_HLL6200DW"

	install -Dm755 \
		"$srcdir/opt/brother/Printers/HLL6200DW/lpd/rawtobr3" \
		"$pkgdir/usr/share/Brother/Printer/HLL6200DW/lpd/rawtobr3"
}