1 # Contributor: melyadon
2 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
3 # Contributor: untseac <emanuel.amaral.couto(at)gmail(dot).com>
4 # Contributor: element74 <don_palme@gmx.de>
5 pkgname=brother-mfc255cw-lpr
8 pkgdesc="Brother LPR driver for MFC-255CW printer"
10 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-255CW"
11 license=('custom:Brother open license')
12 provides=('brother-mfc255cw-cupswrapper')
13 source=(http://www.brother.com/pub/bsc/linux/dlf/mfc255cwlpr-${pkgver//_/-}.i386.deb license.txt)
14 md5sums=('372440117893c6ad49acdd312c264c3b'
15 '0ef9ca226622b9b49acf9d4208c8bd61')
18 # extract the deb archive
20 ar x mfc255cwlpr-${pkgver//_/-}.i386.deb || return 1
22 tar -xvzf data.tar.gz -C data || return 1
25 install -d -m755 $pkgdir/usr/{bin,share,local/Brother/Printer/mfc255cw/{inf,lpd}} || return 1
27 #install the config tool
28 install -m755 data/usr/bin/brprintconf_mfc255cw $pkgdir/usr/bin/ || return 1
31 cp -R data/usr/local/Brother/Printer/mfc255cw/{inf,lpd} $pkgdir/usr/local/Brother/Printer/mfc255cw || return 1
34 install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1