summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 83c9337372533fb99ac9f91cdc307660b689655f (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: core_contingency <ccontingency at gmail dot com>
# Credit goes to Migy and his package 'brother-mfc-9332cdw' for the original 
# package, I just made minor changes.

model="9325cw"
pkgname="brother-mfc-$model"
pkgver="20190807"
pkgrel=1
lprver="1.1.2-1"
cwver="1.1.2-2"
pkgdesc="LPR and CUPS drivers for Brother MFC-9325CW"
url="https://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=mfc9325cw_us_as"
arch=('i686' 'x86_64')
license=('GPL2')
install="brother-mfc-${model}.install"
depends=('lib32-libcups' 'ghostscript')
makedepends=('perl' 'a2ps')
optdepends=('brscan4: Scanner support')
source=("https://download.brother.com/welcome/dlf006466/mfc${model}lpr-${lprver}.i386.deb"
        "https://download.brother.com/welcome/dlf006468/mfc${model}cupswrapper-${cwver}.i386.deb")
sha512sums=('b3c994cce7cf96d01e5aafa3167dbe4fece78c73110b57d441d270168b4f4a76dc44932bbbd17bc425fa6c0e93aec8df980daafda42645a2119d7a043edb4c65'
            '7fccacc9fd863800c7d187f26efe0648e1a9400bc4a40c48fc6753466ea01baf1a074ee402008e1cea22edeb82bd85432ef55115898ee2ebaa353cde17d76d35')

package() {
    ar x mfc${model}lpr-${lprver}.i386.deb && tar xzvf data.tar.gz
    ar x mfc${model}cupswrapper-${cwver}.i386.deb && tar xzvf data.tar.gz

    cd opt/brother/Printers/mfc${model}
    perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model}
    perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij

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