4javier

PKGBUILD

Nov 14th, 2012
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. # Contributor: 4javier < 4javiereg4 _at gmail_ _dot_ com >
  2. pkgname=dcp145c
  3. pkgver=1.1.2_2
  4. pkgrel=3
  5. license=('GPL' 'custom:Brother')
  6. arch=('i686')
  7. pkgdesc="Brother DCP-145C Printer driver"
  8. url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_prn.html#DCP-145C"
  9. depends=('cups' 'ghostscript')
  10. install=$pkgname.install
  11. source=(http://pub.brother.com/pub/com/bsc/linux/dlf/${pkgname}lpr-${pkgver/_/-}.i386.rpm
  12. http://pub.brother.com/pub/com/bsc/linux/dlf/${pkgname}cupswrapper-${pkgver/_/-}.i386.rpm
  13. readme)
  14. md5sums=('bd8b8ab373172266eed34040658344be'
  15. '58ec23ccb3e8d7617006b9659fb36a95'
  16. 'b7da5fa7b76a5a2478098fa759773dbf')
  17.  
  18. package() {
  19. cp -r $srcdir/usr $pkgdir
  20. 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
  21. sed -i 's|/etc/init.d/cups restart|systemctl restart cups|g' $pkgdir/usr/local/Brother/Printer/$pkgname/cupswrapper/cupswrapper$pkgname
  22. }
Advertisement
Add Comment
Please, Sign In to add comment