summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb7046b35aa13740ee36ef697c170292d245b261 (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
# Maintainer: jx11r <jx11r@hotmail.com>
# Contributor: Martin Zecher Magni <mzecher@gmail.com>
# Strongly based on DCP-T500W PKGBUILD by Samuel Fernando Mesa Giraldo

pkgname=brother-dcpt300
pkgver=3.0.2
pkgrel=2
pkgdesc="Driver for the Brother DCP-T300 multifuncional printer"
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom:brother')
depends=('a2ps' 'cups' 'lib32-glibc')
install="brother-dcpt300.install"
arch=('i686' 'x86_64')

md5sums=('164dd5eaeb33bb89c5ba6a6a547b65b8'
         'a0299c04635a1db426f0d4c65200b3ab'
         'add52c42190a557a4294150a5a27905f')

source=(
	"fix_lp.patch" \
    "http://download.brother.com/welcome/dlf101958/dcpt300lpr-$pkgver-0.i386.rpm" \
	"http://download.brother.com/welcome/dlf101959/dcpt300cupswrapper-$pkgver-0.i386.rpm"
)

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

post_install() {
	/opt/brother/Printers/dcpt300/cupswrapper/cupswrapperdcpt300
}

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