updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / dcp375cw / PKGBUILD
blob8f2c4b1788e7e86444e96e8bd458ed7e490cdaa7
1 # Contributor: Bartosz Iwaniec < hash87 [at] gmail [dot] com >
2 pkgname=dcp375cw
3 pkgver=1.1.2
4 pkgrel=5
5 pkgdesc="CUPS driver for Brother DCP-375CW printer"
6 arch=('i686' 'x86_64')
7 license=('custom:Brother Industries')
8 depends=('cups' 'foomatic-filters' 'a2ps')
9 makedepends=('rpmextract')
10 url="http://solutions.brother.com/linux/en_us/index.html"
11 source=(http://www.brother.com/pub/bsc/linux/dlf/${pkgname}lpr-${pkgver}-1.i386.rpm \
12     http://www.brother.com/pub/bsc/linux/dlf/${pkgname}cupswrapper-${pkgver}-2.i386.rpm)
13 md5sums=('db929edbb71408760b556509e17b46b7'
14          'fc9c7a4c24e764ae8c9a92686e226631')
15 install=$pkgname.install
16 [ "$CARCH" = "x86_64" ] && depends=('cups' 'foomatic-filters' 'lib32-glibc' 'a2ps')
17 build() {
18     cd "$startdir/pkg" || return 1
19     for n in $startdir/src/*.rpm; do
20         rpmextract.sh "$n" || return 1
21     done 
22     sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/${pkgname}/cupswrapper/cupswrapper${pkgname}