summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 401293fb3644041b029fe13208a6f5cd1bc086fd (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
# Maintainer: Leo Pham <regretfulumbrella at gmail dot com>

pkgname=brother-mfc-9335cdw
pkgver=1.1.4
pkgrel=2
pkgdesc='LPR and CUPS drivers for the Brother MFC-9335CDW'
arch=('i686' 'x86_64')
url='http://support.brother.com/g/s/id/linux/en/index.html'
license=('custom:brother' 'GPL')
depends=('cups')
depends_x86_64=('lib32-libcups')
optdepends=('brscan4: scanning support [AUR]'
            'brscan-skey: scanner interface (touchscreen/buttons) support [AUR]')
makedepends=('perl' 'a2ps' 'tar')
install='brother-mfc-9335cdw.install'
changelog='changelog.md'
source=('http://download.brother.com/welcome/dlf102677/mfc9335cdwlpr-1.1.3-0.i386.deb'
        'http://download.brother.com/welcome/dlf102678/mfc9335cdwcupswrapper-1.1.4-0.i386.deb')
md5sums=('f993eb5322df2c9519a86ac0afcbb197'
         'f3afb684911c55a131532bb8cfdbc672')

package() {
    ar x mfc9335cdwlpr-1.1.3-0.i386.deb && tar xzvf data.tar.gz
    ar x mfc9335cdwcupswrapper-1.1.4-0.i386.deb && tar xzvf data.tar.gz

    # Patch filenames to work on Arch
    cd opt/brother/Printers/mfc9335cdw
    perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc9335cdw
    perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij

    cp -rf $srcdir/usr/ $pkgdir/
    cp -rf $srcdir/opt/ $pkgdir/
}