1 # Contributor: Markus Golser <elmargol@googlemail.com>
2 pkgname=brother-fax1940cn-cupswrapper
6 pkgdesc="Brother LPR-to-CUPS wrapper for fax1940cn and compatible printers"
8 url="http://solutions.brother.com/linux/en_us/download_prn.html#MFC-260C"
10 depends=("brother-fax1940cn-lpr" tcsh)
11 source=(http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/cupswrapper${_printer}-${pkgver//_/-}.i386.deb $pkgname.patch)
12 md5sums=('2ecba194051aa6494b40f9523b0ecf5b'
13 '27c6df7057bd59ffcf73c61dbef66850')
16 # extract and patch deb sources
18 ar x cupswrapper${_printer}-${pkgver//_/-}.i386.deb || return 1
20 tar -xvzf data.tar.gz -C data || return 1
21 patch -Np1 -d data/ < $pkgname.patch || return 1
23 install -D -m755 $srcdir/data/usr/local/Brother/cupswrapper/cupswrapperFAX1940CN-1.0.2 $pkgdir/usr/Brother/cupswrapper/cupswrapperFAX1940CN-1.0.2 || return 1
25 # generate ppd and filter
26 $srcdir/data/usr/local/Brother/cupswrapper/cupswrapperFAX1940CN-1.0.2 || return 1
28 #install ppd and filter
29 install -D -m755 $srcdir/brlpdwrapperFAX1940CN $pkgdir/usr/lib/cups/filter/brlpdwrapperFAX1940CN || return 1
30 install -D -m664 $srcdir/brfax1940cn_cups.ppd $pkgdir/usr/share/cups/model/brfax1940cn_cups.ppd || return 1