blob: e616ac3afec715ff99962198cf1ce0395df75dfc (
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
|
# Maintainer: Lswest lswest34 <at> gmail.com
# Based on brother-mfc-j6710dw package from AUR
_model="j6510dw"
pkgname="brother-mfc-$_model"
pkgver="3.0.0"
pkgrel=5
_revision=1
pkgdesc="LPR and CUPS driver for the Brother MFC-J6510DW"
url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
arch=('i686' 'x86_64')
license=('unknown')
install="brother-mfc-${_model}.install"
depends=('bash' 'lib32-glibc')
makedepends=('perl')
source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}lpr-${pkgver}-${_revision}.i386.deb"
"http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb")
noextract=("${source[@]%%::*}")
build() {
cd $srcdir || return 1
[ -d "mfc${_model}" ] || (mkdir mfc${_model} || return 1)
ar p mfc${_model}lpr-${pkgver}-${_revision}.i386.deb data.tar.gz | tar zx -C mfc${_model}|| return 1
ar p mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb data.tar.gz | tar zx -C mfc${_model} || return 1
cd mfc${_model} || return 1
cd opt/brother/Printers/mfc${_model} || return 1
perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${_model} || return 1
perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${_model}/opt/brother/Printers/mfc${_model}/inf/setupPrintcapij || return 1
perl -i -pe 's#\*CloseUI: \*BRReverse#*%CloseUI: *BRReverse#g' ./cupswrapper/brother_mfcj6510dw_printer_en.ppd || return 1
rm -f *.deb || return 1
}
package() {
cp -rf $srcdir/mfc${_model}/usr/ $pkgdir/ || return 1
cp -rf $srcdir/mfc${_model}/opt/ $pkgdir/ || return 1
}
md5sums=('b45aa1c4524eceecaf8f620a3abe1c61'
'753494cf9dabdc35987bff23aa28836b')
|