updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brother-dcp9010cn / PKGBUILD
blobef5e351a2021882b2bb4a58425f873a3adc428b9
1 # Contributor: Pavel Benak <pavel.benak@uhk.cz>
3 pkgname=brother-dcp9010cn
4 pkgver=1.1.1
5 pkgrel=4
6 pkgdesc="Brother cups and lpd driver for DCP-9010CN"
7 arch=('i686' 'x86_64')
8 url="http://solutions.brother.com/linux/en_us/index.html"
9 license=('custom')mm
10 if [ "$(uname -m)" = "x86_64" ]
11 then
12  depends=('lib32-glibc' 'psutils')
13 else
14  depends=('psutils')
16 noextract=(DCP7010.ppd.gz)
18 source=(
19 http://www.brother.com/pub/bsc/linux/dlf/dcp9010cncupswrapper-$pkgver-$pkgrel.i386.deb
20 http://www.brother.com/pub/bsc/linux/dlf/dcp9010cnlpr-$pkgver-$pkgrel.i386.deb
21 brlpdwrapperdcp9010cn
24 md5sums=('f8fbdc819c5ed1d54fdfe0da24e2939d'
25          '6b24a542b9d2f755d43cf0e6c91101ad'
26          '3ba6c4dd55eb15f918741f4ad102570f')
28 build()
30  mkdir -p $startdir/src/unpack || return 1
31  for i in $startdir/src/*.deb
32  do
33   cd $startdir/src/unpack
34   ar -x $i || return 1
35   cd $startdir/pkg
36   bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
37  done
39  cd $startdir/src
40  install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
41  install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
42  install -D -m644 $startdir/pkg/usr/local/Brother/Printer/dcp9010cn/cupswrapper/dcp9010cn.ppd $startdir/pkg/usr/share/cups/model || return 1
43  install -D -m755 brlpdwrapperdcp9010cn $startdir/pkg/usr/lib/cups/filter || return 1