summaryrefslogtreecommitdiffstats
path: root/brother-dcp9010cn/PKGBUILD
blob: ef5e351a2021882b2bb4a58425f873a3adc428b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Pavel Benak <pavel.benak@uhk.cz>

pkgname=brother-dcp9010cn
pkgver=1.1.1
pkgrel=4
pkgdesc="Brother cups and lpd driver for DCP-9010CN"
arch=('i686' 'x86_64')
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom')mm
if [ "$(uname -m)" = "x86_64" ]
then
 depends=('lib32-glibc' 'psutils')
else
 depends=('psutils')
fi
noextract=(DCP7010.ppd.gz)

source=(
http://www.brother.com/pub/bsc/linux/dlf/dcp9010cncupswrapper-$pkgver-$pkgrel.i386.deb
http://www.brother.com/pub/bsc/linux/dlf/dcp9010cnlpr-$pkgver-$pkgrel.i386.deb
brlpdwrapperdcp9010cn
)

md5sums=('f8fbdc819c5ed1d54fdfe0da24e2939d'
         '6b24a542b9d2f755d43cf0e6c91101ad'
         '3ba6c4dd55eb15f918741f4ad102570f')

build()
{
 mkdir -p $startdir/src/unpack || return 1
 for i in $startdir/src/*.deb
 do
  cd $startdir/src/unpack
  ar -x $i || return 1
  cd $startdir/pkg
  bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
 done

 cd $startdir/src
 install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
 install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
 install -D -m644 $startdir/pkg/usr/local/Brother/Printer/dcp9010cn/cupswrapper/dcp9010cn.ppd $startdir/pkg/usr/share/cups/model || return 1
 install -D -m755 brlpdwrapperdcp9010cn $startdir/pkg/usr/lib/cups/filter || return 1
}