summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2569a4f0f4f9658d0b2929a2b7fe84154e2d3e79 (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
# Maintainer: Samuel Fernando Mesa Giraldo <samuelmesa@linuxmail.org>

pkgname=brother-dcpt500w
pkgver=3.0.2
pkgrel=1
pkgdesc="Driver for the Brother DCP-T500W wifi multifuncional printer"
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom:brother')
depends=('a2ps' 'cups')
makedepends=('rpmextract')
install="brother-dcpt500w.install"
arch=('i686' 'x86_64')

md5sums=('6d76dd9b018d417e75a8eabb51dc3080'
         'd7cfc19a591c00378219059c6cc901df'
         '0741ac139077747bd4966c86d62d1f26')

source=(
	"fix_lp.patch" \
    "http://download.brother.com/welcome/dlf101954/dcpt500wlpr-$pkgver-0.i386.rpm" \
	"http://download.brother.com/welcome/dlf101955/dcpt500wcupswrapper-$pkgver-0.i386.rpm"
)

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

post_install() {
	/opt/brother/Printers/dcpt500w/cupswrapper/cupswrapperdcpt500w
}

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