updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brother-dcp7045n / PKGBUILD
blobf7de57ed63c4ef6fa100dae0a3494bb9f5cc84d4
1 # Contributor: AndrĂ© Fettouhi <A.Fettouhi@gmail.com>
3 pkgname=brother-dcp7045n
4 pkgver=2.0.2
5 pkgrel=1
6 pkgdesc="brother cupd and lpd driver for DCP-7045N"
7 arch=('i686' 'x86_64')
8 url="http://solutions.brother.com/linux/en_us/index.html"
9 license=('custom')
10 if [ "$(uname -m)" = "x86_64" ]
11 then
12  depends=('lib32-glibc' 'psutils')
13 else
14  depends=('psutils')
16 noextract=(BR7045_2_GPL.ppd.gz)
18 source=(http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7045N-$pkgver-$pkgrel.i386.deb
19 http://www.brother.com/pub/bsc/linux/dlf/brdcp7045nlpr-$pkgver-$pkgrel.i386.deb
20 http://www.brother.com/pub/bsc/linux/dlf/BR7045_2_GPL.ppd.gz
23 md5sums=('c6095fb00960a288b573bbab48f91adb'
24          'f6c4dbbad0d56ddc9a1719dfd8ac7fea'
25          '15eeee2df64aa0c20329e4df8076a181')
26 build()
28  mkdir -p $startdir/src/unpack || return 1
29  for i in $startdir/src/*.deb
30  do
31   cd $startdir/src/unpack
32   ar -x $i || return 1
33   cd $startdir/pkg
34   bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
35  done
36 cat <<END >>$startdir/pkg/usr/local/Brother/inf/brDCP7045Nfunc || return 1
37 [psconvert2]
38 pstops=/usr/bin/pstops
39 END
40  cd $startdir/src
41  install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
42  install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
43  install -D -m644 BR7045_2_GPL.ppd.gz $startdir/pkg/usr/share/cups/model || return 1