summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9db23a869e1205734d3460172da56bb2aa19460 (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
# Maintainer: Igor Muzyka <muzyka-iv@mail.ru>

pkgname=brother-dcp1510
pkgver=3.0.1
pkgrel=1
pkgdesc="Brother cups and lpr driver for DCP-1510, DCP-1510r, DCP-1511, DCP-1512, DCP-1512r, DCP-1518"
arch=('i686' 'x86_64')
url="http://support.brother.com/g/s/id/linux/en/download_prn.html"
license=('GPL')

if [ "$(uname -m)" = "x86_64" ]; then
 depends=('lib32-libstdc++5' 'psutils' 'cups')
else
 depends=('psutils' 'cups')
fi

source=(http://www.brother.com/pub/bsc/linux/dlf/dcp1510lpr-$pkgver-1.i386.deb
		http://www.brother.com/pub/bsc/linux/dlf/dcp1510cupswrapper-$pkgver-1.i386.deb)

md5sums=('20aad8606e54516346348702ff137701'
		 '15a01c13ef18510b5b40576505cd016e')

install=install

package() {
cd $srcdir
mkdir dcp1510lpr
mkdir dcp1510cupswrapper
cd dcp1510lpr
ar x ../dcp1510lpr-$pkgver-1.i386.deb
cd ../dcp1510cupswrapper
ar x ../dcp1510cupswrapper-$pkgver-1.i386.deb
cd $pkgdir
tar xvfp $srcdir/dcp1510lpr/data.tar.gz
tar xvfp $srcdir/dcp1510cupswrapper/data.tar.gz
sed -i '/chown/d' ./opt/brother/Printers/DCP1510/inf/setupPrintcap
}