Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: 4javier < 4javiereg4 _at gmail_ _dot_ com >
- pkgname=dcp145c
- pkgver=1.1.2_2
- pkgrel=3
- license=('GPL' 'custom:Brother')
- arch=('i686')
- pkgdesc="Brother DCP-145C Printer driver"
- url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-145C"
- depends=('cups' 'ghostscript')
- install=$pkgname.install
- source=(http://pub.brother.com/pub/com/bsc/linux/dlf/${pkgname}lpr-${pkgver/_/-}.i386.rpm
- http://pub.brother.com/pub/com/bsc/linux/dlf/${pkgname}cupswrapper-${pkgver/_/-}.i386.rpm
- readme)
- md5sums=('bd8b8ab373172266eed34040658344be'
- '58ec23ccb3e8d7617006b9659fb36a95'
- 'b7da5fa7b76a5a2478098fa759773dbf')
- package() {
- cp -r $srcdir/usr $pkgdir
- sed -i 's|-e /etc/init.d/cups |-e /etc/systemd/system/printer.target.wants/cups.service |g' $pkgdir/usr/local/Brother/Printer/$pkgname/cupswrapper/cupswrapper$pkgname
- sed -i 's|/etc/init.d/cups restart|systemctl restart cups|g' $pkgdir/usr/local/Brother/Printer/$pkgname/cupswrapper/cupswrapper$pkgname
- }
Advertisement
Add Comment
Please, Sign In to add comment