updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / brother-dcp770cw / PKGBUILD
blobfca3318763385e524a1440c080d87fbee961a055
1 # Contributor: Richard Kakaš <richard.kakas@gmail.com>
3 pkgname=brother-dcp770cw
4 pkgver=1.0.1
5 pkgrel=1
6 license=('custom:Brother Industries')
7 pkgdesc="Brother DCP-770CW CUPS driver"
8 url="http://solutions.brother.com/linux/en_us/index.html"
10 arch=('i686' 'x86_64')
11 depends=()
12 makedepends=('rpmextract')
15 install=brother-dcp770cw.install
16 source=(http://www.brother.com/pub/bsc/linux/dlf/dcp770cwlpr-$pkgver-$pkgrel.i386.rpm
17                 http://www.brother.com/pub/bsc/linux/dlf/dcp770cwcupswrapper-$pkgver-$pkgrel.i386.rpm
18                 fix_lp.patch)
19 md5sums=('8aca733dd71bf5b5b87bef8bd8c579b9' 'fc65f9687866620b3b3aaa6dbfe95045' '70d3e854af7d68cfb6c8e85a7dc9d57a')
21 build() {
22         cd $srcdir
23         for i in *.rpm; do
24                 rpmextract.sh "$i" || return 1
25         done
26         
27         cd ../
28         patch -Np0 < fix_lp.patch || return 1
30         mkdir -p $pkgdir/usr/bin || return 1
31         mkdir -p $pkgdir/var/spool/lpd || return 1
32         cp -R $srcdir/usr/bin/* $pkgdir/usr/bin/ || return 1
33         cp -R $srcdir/usr/local/ $pkgdir/usr/local/ || return 1