updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / brother-mfc-230c / PKGBUILD
blob084c97636bbe8b957ce4a86358bbbc0fa361e3be
1 # Contributor: Samuel Dionne-Riel <samuel@dionne-riel.com>
3 #based on http://aur.archlinux.org/packages.php?ID=30051
5 pkgname="brother-mfc-230c"
6 pkgver="1.0.1_1"
7 pkgrel=3
8 pkgdesc="LPR and CUPS driver for the Brother MFC-230c"
9 url="http://solutions.brother.com/linux/en_us/"
10 arch=('i686' 'x86_64')
11 license='unknown'
12 install='brother-mfc-230c.install'
13 depends=('tcsh' 'perl' 'cups')
14 makedepends=('deb2targz')
15 source=(
16         "http://www.brother.com/pub/bsc/linux/dlf/mfc230clpr-${pkgver/_/-}.i386.deb"
17         "http://www.brother.com/pub/bsc/linux/dlf/mfc230ccupswrapper-${pkgver/_/-}.i386.deb"
19 md5sums=(
20         'addbb5bb05a0a9e926a68b78bc470b07'
21         '7afff31efd60747340e72f41c615841d'
24 build() {
25         deb2targz *.deb || return 1
26         rm -f *.deb || return 1
27         cd $srcdir || return 1
28         [ -d "mfc230c" ] || (mkdir mfc230c || return 1)
29         for i in *.tar.gz;do tar xvvvfz $i -C mfc230c;done || return 1
30         cd mfc230c || return 1
31         cd usr/local/Brother/Printer/mfc230c || return 1
32         perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc230c || return 1
33         perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij || return 1
34         cp -rv $srcdir/mfc230c/usr/ $pkgdir/ || return 1