1 # Contributor: Bartosz Iwaniec < hash87 [at] gmail [dot] com >
5 pkgdesc="CUPS driver for Brother DCP-375CW printer"
7 license=('custom:Brother Industries')
8 depends=('cups' 'foomatic-filters' 'a2ps')
9 makedepends=('rpmextract')
10 url="http://solutions.brother.com/linux/en_us/index.html"
11 source=(http://www.brother.com/pub/bsc/linux/dlf/${pkgname}lpr-${pkgver}-1.i386.rpm \
12 http://www.brother.com/pub/bsc/linux/dlf/${pkgname}cupswrapper-${pkgver}-2.i386.rpm)
13 md5sums=('db929edbb71408760b556509e17b46b7'
14 'fc9c7a4c24e764ae8c9a92686e226631')
15 install=$pkgname.install
16 [ "$CARCH" = "x86_64" ] && depends=('cups' 'foomatic-filters' 'lib32-glibc' 'a2ps')
18 cd "$startdir/pkg" || return 1
19 for n in $startdir/src/*.rpm; do
20 rpmextract.sh "$n" || return 1
22 sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/${pkgname}/cupswrapper/cupswrapper${pkgname}