summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 480e933a4544387df2b6225bcdc148789528f249 (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
model="j6580cdw"
pkgname="brother-mfc-6580cdw-jpn"
pkgver="1.0.1"
pkgrel=1
lprver="1.0.1-0"
cwver="1.0.1-0"
pkgdesc="LPR and CUPS drivers for Brother MFC-6580CDW (Japan)"
url="http://support.brother.com/g/s/id/linux/en/index.html"
arch=('i686' 'x86_64')
license=('unknown')
depends=('perl' 'a2ps' 'lib32-libcups' 'libcups')
optdepends=('brscan5: Scanner support')
install="brother-mfc-${model}.install"
source=("https://download.brother.com/welcome/dlf103148/mfc${model}cupswrapper-1.0.1-0.i386.deb" "https://download.brother.com/welcome/dlf103146/mfc${model}lpr-1.0.1-0.i386.deb")
sha256sums=("aedcecaab10ec45f9a164607aa3c3c161d519e4132608ac15411e4d48db07359" "6557d708c0518216c32712bf5665a295f287a5858e79d6e99b09ca31c0ff72e8")

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/
}