1 # Contributor: André Fettouhi <A.Fettouhi@gmail.com>
3 pkgname=brother-dcp7045n
6 pkgdesc="brother cupd and lpd driver for DCP-7045N"
8 url="http://solutions.brother.com/linux/en_us/index.html"
10 if [ "$(uname -m)" = "x86_64" ]
12 depends=('lib32-glibc' 'psutils')
16 noextract=(BR7045_2_GPL.ppd.gz)
18 source=(http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7045N-$pkgver-$pkgrel.i386.deb
19 http://www.brother.com/pub/bsc/linux/dlf/brdcp7045nlpr-$pkgver-$pkgrel.i386.deb
20 http://www.brother.com/pub/bsc/linux/dlf/BR7045_2_GPL.ppd.gz
23 md5sums=('c6095fb00960a288b573bbab48f91adb'
24 'f6c4dbbad0d56ddc9a1719dfd8ac7fea'
25 '15eeee2df64aa0c20329e4df8076a181')
28 mkdir -p $startdir/src/unpack || return 1
29 for i in $startdir/src/*.deb
31 cd $startdir/src/unpack
34 bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
36 cat <<END >>$startdir/pkg/usr/local/Brother/inf/brDCP7045Nfunc || return 1
38 pstops=/usr/bin/pstops
41 install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
42 install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
43 install -D -m644 BR7045_2_GPL.ppd.gz $startdir/pkg/usr/share/cups/model || return 1