updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / brother-mfc210c-cupswrapper / PKGBUILD
blobdec7a4dd654ff3f5803dd8483a87f14fc0f38a8e
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
5 pkgver=1.0.2_3
6 pkgrel=4
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"
8 arch=('i686' 'x86_64')
9 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#MFC-210C"
10 license=('GPL2')
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')
18 build() {
19   # extract and patch deb sources
20   cd $srcdir
21   ar x cupswrapperMFC210C-${pkgver//_/-}.i386.deb || return 1
22   mkdir data
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