summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d17ef3e42855b536ca48226e1f6d6f7f9a5d69f (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: Uros V <uros[dot]v[dot]dev[at]gmail[dot]com>
# Based on brother-dcpt525w by Nick Pilipenko

pkgname=brother-dcpt720dw
pkgver=3.5.0
pkgrel=1
pkgdesc="Brother printer driver (lpd/cups) for the DCP-T720DW multifuncional printer"
url="https://support.brother.com/g/b/producttop.aspx?c=eu_ot&lang=en&prod=dcpt720dw_all"
license=('custom: Brother License' 'EULA' 'GPL')
arch=('i686' 'x86_64')
optdepends=('sane: scanning support'
            'sane-airscan: SANE backend for AirScan (eSCL) and WSD document scanners'
            'brscan5: making dcpt820dw scaner available to sane'
            'brscan-skey: scankey support if connected via usb')

depends=('a2ps' 'cups')
depends_x86_64=('lib32-glibc')
install="dcpt720dw.install"

source=(
  "https://download.brother.com/welcome/dlf105179/dcpt720dwpdrv-$pkgver-$pkgrel.i386.deb" \
  "spool.patch"
)
sha256sums=(
  '4e85051a71f177aae72dd7e17431b386fb20149ba4100573966efd8669125771' \
  '8e2457a74df8f0da71400d0171ffdc8c14e54f5998f6172f2827666fd2913c44'
)

package() {
  install_scripts="/opt/brother/Printers/dcpt720dw/scripts"
  scripts="${pkgdir}${install_scripts}"
  mkdir -p "${scripts}"
  tar -xf control.tar.gz -C "${scripts}"
  tar -xf data.tar.gz -C "${pkgdir}"
  cd "${pkgdir}"
  patch -Np0 < "${srcdir}/spool.patch"
}