updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / dcp135c / PKGBUILD
blob75878fdfc984ec192398cce44a66810e682af682
1 # Contributor: Jan Hrdina <jan.hrdka@gmail.com>
3 pkgname=dcp135c
4 _printername=${pkgname/*-/}
5 pkgver=1.0.1
6 pkgrel=2
7 pkgdesc="CUPS driver for Brother DCP-135C 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=('82477f63f298bca32374450de6393270'
16          '395026a5438b03be521d309f38b4132b')
17  install=dcp135c.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|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/dcp135c/cupswrapper/cupswrapperdcp135c