updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / brother-mfc255cw-lpr / PKGBUILD
blob5ae3458cd7c6552ce39ab39b841e90c6036cbfc7
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
6 pkgver=1.1.2_1
7 pkgrel=1
8 pkgdesc="Brother LPR driver for MFC-255CW printer"
9 arch=('i686')
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')
17 build() {
18   # extract the deb archive
19   cd $srcdir
20   ar x mfc255cwlpr-${pkgver//_/-}.i386.deb || return 1
21   mkdir data
22   tar -xvzf data.tar.gz -C data || return 1
24   # create directories
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
30   # copy the rest
31   cp -R data/usr/local/Brother/Printer/mfc255cw/{inf,lpd} $pkgdir/usr/local/Brother/Printer/mfc255cw || return 1
33   # install the license
34   install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1