updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / dcp130c / PKGBUILD
blobd008370a932abab76e9de51ee65f10923dfa7a1b
1 pkgname=dcp130c
2 _printername=${pkgname/*-/}
3 pkgver=1.0.1
4 pkgrel=1
5 pkgdesc="CUPS driver for Brother DCP-130C printer"
6 arch=(i686)
7 license=('custom:Brother Industries')
8 depends=('cups' 'tcsh')
9 makedepends=('rpmextract')
10 url="http://solutions.brother.com/linux/en_us/index.html"
11 source=(http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/cups_wrapper/${_printername}cupswrapper-$pkgver-$pkgrel.i386.rpm \
12         http://solutions.brother.com/Library/sol/printer/linux/rpmfiles/lpr_others/${_printername}lpr-$pkgver-$pkgrel.i386.rpm)
13 md5sums=('fefbc571a5d75673233ce3a65ae26e68'
14          '752d1cd03483cc2137f92b3481693bb0')
15 install=dcp130c.install
16 build() {
17   cd "$startdir/pkg" || return 1
18   for n in $startdir/src/*.rpm; do
19     rpmextract.sh "$n" || return 1
20   done 
22   sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/Printer/dcp130c/cupswrapper/cupswrapperdcp130c