updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / dcp110c / PKGBUILD
blob3ba9cfb3c61ae69564b776b3300b43f90181b232
1 # Contributor: ZeroCool <trash4you(at)online(dot).de>
2 pkgname=dcp110c
3 _printername=DCP110C
4 _sourcebase="http://pub.brother.com/pub/com/bsc/linux/dlf/"
5 pkgver=1.0.2
6 pkgrel=1
7 pkgdesc="CUPS driver for Brother DCP-110C printer"
8 arch=('i686', 'x86_64')
9 license=('custom:Brother Industries')
10 if [ "$CARCH" = "x86_64" ]; then
11     depends=('cups' 'sed' 'tcsh' 'lib32-libcups' 'ghostscript' 'gsfonts' 'foomatic-filters')
12 else
13     depends=('cups' 'sed' 'tcsh' 'ghostscript' 'gsfonts' 'foomatic-filters')
15 makedepends=('rpmextract')
16 url="http://solutions.brother.com/linux/en_us/index.html"
17 source=("${_sourcebase}cupswrapper${_printername}-1.0.0-$pkgrel.i386.rpm"
18         "${_sourcebase}${_printername}lpr-$pkgver-$pkgrel.i386.rpm")
19 md5sums=('f3b7e05232838ac2eaa008f0a6d74c4f'
20          '5b51032a121f9c2e8cd2271c517e5eb7')
21 install=${pkgname}.install
22 build() {
23   cd "$startdir/pkg" || return 1
24   
25   for n in $startdir/src/*.rpm; do
26     rpmextract.sh "$n" || return 1
27   done 
29   sed -i 's|/etc/init.d|/etc/rc.d|' $pkgdir/usr/local/Brother/cupswrapper/cupswrapperDCP110C-1.0.0