updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / brother-dcpj125 / PKGBUILD
blobff4ba68a56c23dab118750e2899fc4b758fdae09
1 # Contributor: Swift Geek <swiftgeek@gmail.com>
3 pkgname=brother-dcpj125
4 _printername=dcpj125
5 pkgver=1.1.3
6 pkgrel=666
7 pkgdesc="CUPS driver for Brother DCP-J125 printer"
8 arch=('i686' 'x86_64')
9 license=('custom:Brother Industries')
10 depends=('cups' 'tcsh')
11 makedepends=('rpmextract')
12 url="http://solutions.brother.com/linux/en_us/index.html"
13 source=(http://www.brother.com/pub/bsc/linux/dlf/${_printername}cupswrapper-$pkgver-1.i386.rpm \
14         http://www.brother.com/pub/bsc/linux/dlf/${_printername}lpr-$pkgver-1.i386.rpm)
15 md5sums=('9c34e1e1adc8a407c760733d71afbc1e'
16          '89f80266ee645dfa9c2a4d18b145e67e')
17 install=dcpj125.install
18 build() {
19    cd "$startdir/pkg" || return 1
20    for n in $startdir/src/*.rpm; do
21    rpmextract.sh "$n" || return 1
22    done 
24    sed -i 's|/etc/init.d/cups|/etc/rc.d/cupsd|' $pkgdir/opt/brother/Printers/dcpj125/cupswrapper/cupswrapperdcpj125