updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / brother-dcp365cn / PKGBUILD
blob6c327dd4da704c1be4dc12e8c898a832fa612c29
1 # Contributor: Alessio Bianchi <venator85@gmail.com>
2 # Contributor: Jacek Roszkowski <j.roszk@gmail.com>
4 pkgname=brother-dcp365cn
5 pkgver=1.1.2
6 pkgrel=3
7 pkgdesc="Driver for the Brother DCP-365CN networked multifuncional printer"
8 url="http://solutions.brother.com/linux/en_us/index.html"
9 license='custom:brother'
10 depends=('a2ps' 'cups')
11 makedepends=('rpmextract')
12 install="brother-dcp365cn.install"
13 arch=('i686' 'x86_64')
15 md5sums=('8a8c0d106515ecb67952597fb0097211'
16          'fed78a590420b8ce726c97ca748bf94e'
17          '368d72e0ac3ee8c94098d657f307726d')
19 source=(
20         'fix_lp.patch' \
21     "http://pub.brother.com/pub/com/bsc/linux/dlf/dcp365cnlpr-$pkgver-1.i386.rpm" \
22     "http://pub.brother.com/pub/com/bsc/linux/dlf/dcp365cncupswrapper-$pkgver-2.i386.rpm"
25 build()
27         cd "$startdir/src"
28         for i in *.rpm; do
29                 rpmextract.sh "$i" || return 1
30         done
31         patch -Np0 < ../fix_lp.patch || return 1
32         cp -r usr/ ../pkg/ || return 1
33         mkdir -p ../pkg/var/spool/lpd/dcp365cn