updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / brother-fax1940cn-cupswrapper / PKGBUILD
blob4a728df61ceff73eec091d816a6e68df21178109
1 # Contributor: Markus Golser <elmargol@googlemail.com>
2 pkgname=brother-fax1940cn-cupswrapper
3 _printer=FAX1940CN
4 pkgver=1.0.2_3
5 pkgrel=2
6 pkgdesc="Brother LPR-to-CUPS wrapper for fax1940cn and compatible printers"
7 arch=('i686')
8 url="http://solutions.brother.com/linux/en_us/download_prn.html#MFC-260C"
9 license=('GPL2')
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')
15 build() {
16   # extract and patch deb sources
17   cd $srcdir
18   ar x cupswrapper${_printer}-${pkgver//_/-}.i386.deb || return 1
19   mkdir data
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