summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4554766db56cfe0fc0b42c746b3869baaf5fddaa (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
pkgname=brother-dcp365cn
pkgver=1.1.3
pkgrel=1
pkgdesc="Driver for Brother DCP-365CN printer"
url="https://support.brother.com/g/b/producttop.aspx?c=de&lang=de&prod=dcp365cn_eu_as"
license=('custom:brother')
depends=('a2ps' 'cups' 'lib32-gcc-libs' 'lib32-glibc')
optdepends=('brscan3: scanner support.')
install="brother-dcp365cn.install"
arch=('i686' 'x86_64')

md5sums=('bea93ac27ae27cbd0916414e5a7f630b'
         '951f04eaa29ce2a95c0b46582cf09411'
         '0c62592b0c185bc6c2610b5407aaafb2')

source=(
	"fix_lp.patch" \
    "https://download.brother.com/welcome/dlf005418/dcp365cnlpr-1.1.3-1.i386.rpm" \
	"https://download.brother.com/welcome/dlf005420/dcp365cncupswrapper-1.1.3-1.i386.rpm"
)

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

post_install() {
	/opt/brother/Printers/dcp365cn/cupswrapper/cupswrapperdcp365cn
}

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