updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / brother-mfc-j6710dw / PKGBUILD
blob9aed7b0c209eee8318b01c15632db56c0e444eec
1 # Maintainer: speed145a <yetAnotherZero@gmail.com>
3 model="j6710dw"
4 pkgname="brother-mfc-$model"
5 pkgver="1.1.1"
6 pkgrel=1
7 _revision=1
8 pkgdesc="LPR and CUPS driver for the Brother MFC-J265W"
9 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
10 arch=('i686' 'x86_64')
11 license='unknown'
12 install="brother-mfc-${model}.install"
13 depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
14 source=("http://pub.brother.com/pub/com/bsc/linux/dlf/mfc${model}lpr-${pkgver}-${_revision}.i386.deb"
15         "http://pub.brother.com/pub/com/bsc/linux/dlf/mfc${model}cupswrapper-${pkgver}-${_revision}.i386.deb")
16 md5sums=('f21525444be3f30433d71c0ac03e8f2e'
17          '2c4711c08c115f0723e1afa60438655d')
19 build() {
20         deb2targz *.deb >/dev/null || return 1
21         rm -f *.deb || return 1
22         cd $srcdir || return 1
23         [ -d "mfc${model}" ] || (mkdir mfc${model} || return 1)
24         for i in *.tar.gz;do tar xfz $i -C mfc${model};done || return 1
25         cd mfc${model} || return 1
26         cd opt/brother/Printers/mfc${model} || return 1
27         perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${model} || return 1
28         perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${model}/etc/opt/brother/Printers/mfc${model}/inf/setupPrintcapij || return 1
29         cp -rf $srcdir/mfc${model}/usr/ $pkgdir/ || return 1
30         cp -rf $srcdir/mfc${model}/opt/ $pkgdir/ || return 1
31         cp -rf $srcdir/mfc${model}/etc/ $pkgdir/ || return 1