blob: 924b6eaaa2a28a50e7b39b1cc216f46b10691d55 (
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
45
46
47
48
|
# Maintainer: Raphaƫl Doursenaud <rdoursenaud@free.fr>
pkgname=brother-dcp9055cdn
pkgver=1.1.1
pkgrel=8
_pkgrel=5
pkgdesc="Brother CUPS and LPD driver for DCP-9055CDN"
arch=('i686' 'x86_64')
url="https://support.brother.com"
license=('custom:Brother' 'GPL')
if [ "$(uname -m)" = "x86_64" ]; then
depends=('lib32-glibc' 'psutils' 'ghostscript' 'cups')
else
depends=('psutils' 'ghostscript' 'cups')
fi
source=(https://download.brother.com/welcome/dlf005571/dcp9055cdnlpr-$pkgver-$_pkgrel.i386.deb
https://download.brother.com/welcome/dlf005573/dcp9055cdncupswrapper-$pkgver-$_pkgrel.i386.deb
brlpdwrapperdcp9055cdn)
md5sums=('f9ffc1a38fcc64e1d7f82d13652a1f57'
'b08a49bee644dac18229c2843c5349b2'
'2d368a9cbaeffbc7c9e24bcafe45b71e')
prepare()
{
mkdir -p $srcdir/unpack || return 1
for i in $srcdir/*.deb
do
cd $srcdir/unpack
ar -x $i || return 1
cd $srcdir
bsdtar -pxf $srcdir/unpack/data.tar.gz || return 1
done
}
package()
{
# Mimic deb install
cp -a $srcdir/usr $pkgdir/ || return 1
# Install PPD to the standard path so that cups can find it
install -d -m755 $pkgdir/usr/share/cups/model || return 1
install -D -m644 $srcdir/usr/local/Brother/Printer/dcp9055cdn/cupswrapper/dcp9055cdn.ppd $pkgdir/usr/share/cups/model || return 1
# Install tuned cups filter
install -d -m755 $pkgdir/usr/lib/cups/filter || return 1
install -D -m755 $srcdir/brlpdwrapperdcp9055cdn $pkgdir/usr/lib/cups/filter || return 1
}
|