updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / brother-mfc295cn / PKGBUILD
blob7dba5dd117022cb8f4acbb5ac79d44390ccf906f
1 # Maintainer: Eric Anschuetz <ericanschuetz@yahoo.com>
2 pkgname=brother-mfc295cn
3 pkgver=1.1.2
4 pkgrel=2
5 pkgdesc="Driver for the Brother MFC-295CN network printer"
6 url="http://solutions.brother.com/linux/en_us/index.html"
7 license=('custom:brother')
9 if [ $CARCH == "x86_64" ]; then
10         depends=('lib32-libcups' 'a2ps' 'psutils')
11 else
12         depends=('a2ps' 'psutils')
15 makedepends=('rpmextract')
16 arch=('i686' 'x86_64')
17 source=(
18         http://www.brother.com/pub/bsc/linux/dlf/mfc295cnlpr-1.1.2-1.i386.rpm
19         http://www.brother.com/pub/bsc/linux/dlf/mfc295cncupswrapper-1.1.2-2.i386.rpm
21 md5sums=('83bdcf5533633c2883595cb87c31773e'
22          'ca3fbf051094445db430261c069a1837')
24 build()
26         cd $srcdir
27         for i in *.rpm; do
28                 rpmextract.sh "$i" || return 1
29         done
30         sed -i 's|/etc/init.d|/etc/rc.d|' usr/local/Brother/Printer/mfc295cn/cupswrapper/cupswrappermfc295cn
33 package()
34 {       
35         cp -r $srcdir/* $pkgdir  || return 1
36