1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 pkgname=brother-mfc260c-cupswrapper
6 pkgdesc="Brother LPR-to-CUPS wrapper for MFC-260C and compatible printers"
8 url="http://solutions.brother.com/linux/en_us/download_prn.html#MFC-260C"
10 depends=("brother-${_printer}-lpr")
11 install=$pkgname.install
12 source=(http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/${_printer}cupswrapper-${pkgver//_/-}.i386.deb $pkgname.patch)
13 md5sums=('527f8048e5dbf7034367fc612ab07776'
14 'c95e97f7da579fe55ec67aa61f99aff9')
17 # extract and patch deb sources
19 ar x ${_printer}cupswrapper-${pkgver//_/-}.i386.deb || return 1
21 tar -xvzf data.tar.gz -C data || return 1
22 patch -Np0 < $pkgname.patch || return 1
24 install -D -m755 $srcdir/data/usr/local/Brother/Printer/$_printer/cupswrapper/brcupsconfpt1 $pkgdir/usr/share/brother/printer/$_printer/cupswrapper/brcupsconfpt1 || return 1
26 # generate ppd and filter
27 $srcdir/data/usr/local/Brother/Printer/$_printer/cupswrapper/cupswrapper$_printer || return 1
29 # install ppd and filter
30 install -D -m755 brlpdwrapper$_printer $pkgdir/usr/lib/cups/filter/brlpdwrapper$_printer || return 1
31 install -D -m664 br$_printer.ppd $pkgdir/usr/share/cups/model/br$_printer.ppd || return 1