1 # Contributor: Richard Kakaš <richard.kakas@gmail.com>
3 pkgname=brother-dcp770cw
6 license=('custom:Brother Industries')
7 pkgdesc="Brother DCP-770CW CUPS driver"
8 url="http://solutions.brother.com/linux/en_us/index.html"
10 arch=('i686' 'x86_64')
12 makedepends=('rpmextract')
15 install=brother-dcp770cw.install
16 source=(http://www.brother.com/pub/bsc/linux/dlf/dcp770cwlpr-$pkgver-$pkgrel.i386.rpm
17 http://www.brother.com/pub/bsc/linux/dlf/dcp770cwcupswrapper-$pkgver-$pkgrel.i386.rpm
19 md5sums=('8aca733dd71bf5b5b87bef8bd8c579b9' 'fc65f9687866620b3b3aaa6dbfe95045' '70d3e854af7d68cfb6c8e85a7dc9d57a')
24 rpmextract.sh "$i" || return 1
28 patch -Np0 < fix_lp.patch || return 1
30 mkdir -p $pkgdir/usr/bin || return 1
31 mkdir -p $pkgdir/var/spool/lpd || return 1
32 cp -R $srcdir/usr/bin/* $pkgdir/usr/bin/ || return 1
33 cp -R $srcdir/usr/local/ $pkgdir/usr/local/ || return 1