updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / brother-mfc490cw-lpr / PKGBUILD
blob9600092bf00544cde75582daf62a2b101b9b6afb
1 # Contributor: Benjamin Bukowski <crankidiot(at)gmail.com>
3 _printer=mfc490cw
4 pkgname=brother-${_printer}-lpr
5 pkgver=1.1.2_2
6 _version=${pkgver//_/-}
7 pkgrel=2
8 pkgdesc="LPR driver for Brother MFC-490CW multifunction network printer"
9 arch=('i686' 'x86_64')
10 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-490CW"
11 license=('GPL')
12 depends=('tcsh')
13 source=("http://www.brother.com/pub/bsc/linux/dlf/${_printer}lpr-${_version}.i386.deb")
14 md5sums=('232734800c2b3ab1e6547e2c2ff1f8f0')
16 build() {
17   cd $srcdir
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
25   rm -r data/usr/local
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