1 # Maintainer: Mark Doe <mark.doe.priv@gmail.com>
2 # Contributor: Benjamin Bukowski <crankidiot(at)gmail.com>
5 pkgname=brother-${_printer}-lpr
7 _version=${pkgver//_/-}
9 pkgdesc="LPR driver for Brother MFC-6490CW multifunction network printer"
10 arch=('i686' 'x86_64')
11 url="http://solutions.brother.com/linux/en_us/download_prn.html#MFC-6490CW"
14 source=("http://pub.brother.com/pub/com/bsc/linux/dlf/${_printer}lpr-${_version}.i386.deb")
15 md5sums=('781e72e8e451bbdb4db39a0967ec1dd6')
20 ar x ${_printer}lpr-${_version}.i386.deb || return 1
21 [ ! -d "data" ] && mkdir data
22 tar -xzvf data.tar.gz -C data || return 1
24 [ ! -d "data/usr/share" ] && mkdir data/usr/share
25 mv data/usr/local/Brother data/usr/share/brother
27 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' data/` || return 1
29 cp -r data/usr $pkgdir || return 1