updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / brother-mfc260c-cupswrapper / PKGBUILD
blob60d6d325e831682cac975418beaac8ef106e95fb
1 # Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de>
2 pkgname=brother-mfc260c-cupswrapper
3 _printer=mfc260c
4 pkgver=1.0.1_1
5 pkgrel=2
6 pkgdesc="Brother LPR-to-CUPS wrapper for MFC-260C 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-${_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')
16 build() {
17   # extract and patch deb sources
18   cd $srcdir
19   ar x ${_printer}cupswrapper-${pkgver//_/-}.i386.deb || return 1
20   mkdir data
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