1 # Contributor: Benjamin Bukowski <crankidiot(at)gmail.com>
4 pkgname=brother-${_printer}-lpr
6 _version=${pkgver//_/-}
8 pkgdesc="LPR driver for Brother MFC-490CW multifunction network printer"
10 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-490CW"
13 source=("http://www.brother.com/pub/bsc/linux/dlf/${_printer}lpr-${_version}.i386.deb")
14 md5sums=('232734800c2b3ab1e6547e2c2ff1f8f0')
19 ar x ${_printer}lpr-${_version}.i386.deb || return 1
20 [ ! -d "data" ] && mkdir data
21 tar -xzvf data.tar.gz -C data || return 1
23 [ ! -d "data/usr/share" ] && mkdir data/usr/share
24 mv data/usr/local/Brother data/usr/share/brother
26 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' data/` || return 1
28 cp -r data/usr $pkgdir || return 1