summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26cc0f6f6a3430ad75b1285058e46bf557134be8 (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
# Maintainer: Daniel Dietrich <shaddow2k@@gmail..com>
# Based on the DCP-J552DW PKGBUILD -> Marius Rejdak <mariuswol at gmail dot com>
pkgname=brother-dcpj562dw
pkgver=1.0.0
pkgrel=2
pkgdesc="Driver for the Brother DCP-J562DW wifi multifunctional printer"
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom:brother')
depends=('a2ps' 'cups')
install='brother-dcpj562dw.install'
arch=('i686' 'x86_64')

md5sums=('a1249f09228e540a1404497dbd622720'
         '28aaf6a403c9cd2d9496243a978e7a0c'
         '006d9ba0e9906f4cf906b1c58ebe8a46')

source=(
    "fix_lp.patch" \
    "http://download.brother.com/welcome/dlf102101/dcpj562dwlpr-$pkgver-0.i386.rpm" \
    "http://download.brother.com/welcome/dlf102102/dcpj562dwcupswrapper-$pkgver-0.i386.rpm"
)

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

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