updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / brother-hl5250dn-lpr / PKGBUILD
blob6fe0aeb5dcbdb6eaff4baea16a6e292c9458eb06
1 # Contributor: Christopher Schwaab -- christopher.schwaab gmail
2 pkgname=brother-hl5250dn-lpr
3 pkgver=2.0.1
4 pkgrel=3
5 pkgdesc="LPR driver for HL-5250DN and compatible printers."
6 url="http://solutions.brother.com/linux/en_us/"
7 arch=('i686' 'x86_64')
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"
12         'license.txt')
13 md5sums=('ffce0298773e8219bfa417a1c9c271c1'
14          '1653535fd8387de65bfdf9148b3b9ad6')
15 noextract=("brhl5250dnlpr-$pkgver-1.i386.rpm")
17 build() {
18         cd $srcdir
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