updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brother-mfc6490cw-lpr / PKGBUILD
blob7f5d798642e0eb84b1d6c024ed4eff64ffb5c927
1 # Maintainer: Mark Doe <mark.doe.priv@gmail.com>
2 # Contributor: Benjamin Bukowski <crankidiot(at)gmail.com>
4 _printer=mfc6490cw
5 pkgname=brother-${_printer}-lpr
6 pkgver=1.1.2_2
7 _version=${pkgver//_/-}
8 pkgrel=3
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"
12 license=('GPL')
13 depends=('tcsh')
14 source=("http://pub.brother.com/pub/com/bsc/linux/dlf/${_printer}lpr-${_version}.i386.deb")
15 md5sums=('781e72e8e451bbdb4db39a0967ec1dd6')
17 build() {
18   cd $srcdir
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
26   rm -r data/usr/local
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