updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / brother-mfc-j265w / PKGBUILD
blobcb936366151ead8e89b0e815162d76772b54bb94
1 # Maintainer: Uwe Bär <u.baer67@gmail.com>
3 pkgname="brother-mfc-j265w"
4 pkgver="1.1.1"
5 pkgrel=1
6 _revision=1
7 pkgdesc="LPR and CUPS driver for the Brother MFC-J265W"
8 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
9 arch=('i686' 'x86_64')
10 license='unknown'
11 install='brother-mfc-j265w.install'
12 depends=('tcsh' 'deb2targz' 'perl' 'a2ps')
13 source=(
14         "http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj265wlpr-1.1.1-1.i386.deb"
15         "http://pub.brother.com/pub/com/bsc/linux/dlf/mfcj265wcupswrapper-1.1.1-1.i386.deb"
17 md5sums=('1f253d01fd06bd238f51ea121d7f247d'
18          '4a6e2c82866ae6d3fedc9c0d707acc6c')
20 build() {
21         deb2targz *.deb >/dev/null || return 1
22         rm -f *.deb || return 1
23         cd $srcdir || return 1
24         [ -d "mfcj265w" ] || (mkdir mfcj265w || return 1)
25         for i in *.tar.gz;do tar xfz $i -C mfcj265w;done || return 1
26         cd mfcj265w || return 1
27         cd usr/local/Brother/Printer/mfcj265w || return 1
28         perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfcj265w || return 1
29         perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij || return 1
30         cp -rf $srcdir/mfcj265w/usr/ $pkgdir/ || return 1