1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 # Contributor: untseac <emanuel.amaral.couto(at)gmail(dot).com>
3 # Contributor: element74 <don_palme@gmx.de>
4 pkgname=brother-mfc210c-cupswrapper
7 pkgdesc="Brother LPR-to-CUPS wrapper for MFC-210C, MFC-215C, MFC-425CN, MFC-640CW, MFC-820CW, DCP-115C, DCP-117C, DCP-120C, DCP-315CN, DCP-340CW printers"
9 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-210C"
11 depends=('brother-mfc210c-lpr>=1.0.2' 'cups' 'tcsh')
12 install=$pkgname.install
13 provides=('brother-mfc210c=1.0.0')
14 source=(http://www.brother.com/pub/bsc/linux/dlf/cupswrapperMFC210C-${pkgver//_/-}.i386.deb $pkgname.patch)
15 md5sums=('23f49dd7ebdb96bede08da66906e727f'
16 '99ebe0ec09ea714c59b13a86417782bb')
19 # extract and patch deb sources
21 ar x cupswrapperMFC210C-${pkgver//_/-}.i386.deb || return 1
23 tar -xvzf data.tar.gz -C data || return 1
24 patch -Np0 < $pkgname.patch || return 1
26 # install the cupswrapper
27 install -D -m755 $srcdir/data/usr/local/Brother/cupswrapper/cupswrapperMFC210C-1.0.2 $pkgdir/usr/share/brother/cupswrapper/cupswrapperMFC210C-1.0.2 || return 1