updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brother-dcp7030 / PKGBUILD
blob91233c9f9c1800c0fd6fa0f7198cce209ea61d95
1 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
3 pkgname=brother-dcp7030
4 pkgver=2.0.2
5 pkgrel=1
6 pkgdesc="brother cupd and lpd driver for DCP-7030"
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=(DCP7030.ppd.gz)
18 source=(
19 http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7030-$pkgver-$pkgrel.i386.deb
20 http://www.brother.com/pub/bsc/linux/dlf/brdcp7030lpr-$pkgver-$pkgrel.i386.deb
21 brlpdwrapperDCP7030
22 DCP7030.ppd.gz
25 md5sums=('73919884cb19f9fb1a462c77aaa3477e'
26          '26b48edf27afe34d9847579cd81eb206'
27          '993574b2c9e9052ae8d823d5414d8585'
28          '7cb25cc78f001c18e591504db90fe20f')
29 sha256sums=('a9a4e0ec5f941cf17fcc7156febf8aff21673bc78a6313176527a0423847627d'
30             'cd4e6c4b16c5e734721068134699c65b2eca0584bc86031ee7eef7af05b36d8c'
31             '0320e1f19c3be746442b7c6324f0732b17928d2bb611ef143007f6ca0882765b'
32             'ff55d56e1d4488768cbe3ca843a26a284bd2988bd9dddf4a0f1d39c637929997')
34 build()
36  mkdir -p $startdir/src/unpack || return 1
37  for i in $startdir/src/*.deb
38  do
39   cd $startdir/src/unpack
40   ar -x $i || return 1
41   cd $startdir/pkg
42   bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
43  done
44 cat <<END >>$startdir/pkg/usr/local/Brother/inf/brDCP7030func || return 1
45 [psconvert2]
46 pstops=/usr/bin/pstops
47 END
48  cd $startdir/src
49  install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
50  install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
51  install -D -m755 brlpdwrapperDCP7030 $startdir/pkg/usr/lib/cups/filter || return 1
52  install -D -m644 DCP7030.ppd.gz $startdir/pkg/usr/share/cups/model || return 1