1 # Contributor: Christopher Schwaab -- christopher.schwaab gmail
2 pkgname=brother-hl5250dn-lpr
5 pkgdesc="LPR driver for HL-5250DN and compatible printers."
6 url="http://solutions.brother.com/linux/en_us/"
8 license=("custom:brother")
9 depends=('cups' 'ghostscript')
10 makedepends=('rpmextract')
11 source=("http://www.brother.com/pub/bsc/linux/dlf/brhl5250dnlpr-${pkgver}-1.i386.rpm"
13 md5sums=('ffce0298773e8219bfa417a1c9c271c1'
14 '1653535fd8387de65bfdf9148b3b9ad6')
15 noextract=("brhl5250dnlpr-$pkgver-1.i386.rpm")
19 rpmextract.sh "brhl5250dnlpr-$pkgver-1.i386.rpm" || return 1
20 rm "brhl5250dnlpr-$pkgver-1.i386.rpm"
22 mkdir -p usr/share/ || return 1
23 rm -rf usr/share/brother
24 mv usr/local/Brother usr/share/brother || return 1
25 rmdir usr/local || return 1
27 sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' ./` || return 1
29 find . | cpio -p -dum $pkgdir || return 1
30 install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1