summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ca2f950c1c70361f8746884f436e873ec83a6c0a (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
# Maintainer: hawkeye116477 <hawkeye116477 at gmail.com>
# Based on brother-dcpj315w PKGBUILD
pkgname=brother-dcpj925dw
pkgver=3.0
pkgrel=4
pkgdesc="Driver for the Brother DCP-J925DW wifi multifuncional printer"
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom:brother' 'GPL2')
depends=('a2ps' 'cups' 'lib32-glibc')
install="brother-dcpj925dw.install"
arch=('i686' 'x86_64')

md5sums=('b1c8011e07e6eeaebde3464d5e9f7f49'
         '9481020a4aa0cbde915cd52d0b0201fe'
         'd429fb9b1faa4e895d8af8045e83cb80')

source=(
	"fix_lp.patch" \
  "http://www.brother.com/pub/bsc/linux/dlf/dcpj925dwlpr-$pkgver.1-1.i386.rpm" \
	"http://www.brother.com/pub/bsc/linux/dlf/dcpj925dwcupswrapper-$pkgver.0-1.i386.rpm"
)

optdepends=(
	'brscan4: scanning support'
	'brscan-skey: scankey support'
)

build() {
  cd "$srcdir"
	patch -Np0 < fix_lp.patch
}

post_install() {
	/opt/brother/Printers/dcpj925dw/cupswrapper/cupswrapperdcpj925dw
}

package()
{
    install -d $pkgdir/usr/bin
	install -d $pkgdir/var/spool/lpd
    install -Dm755 "$srcdir"/usr/bin/brprintconf_dcpj925dw "$pkgdir"/usr/bin/
	cp -R $srcdir/opt $pkgdir/opt
}