khampf

brother-ql500-cupswrapper/1.0.1-8

Jul 3rd, 2015
320
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index 47a6851..9c40185 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -3,7 +3,7 @@
  6.  pkgname=brother-ql500-cupswrapper
  7.  _pkgname=ql500cupswrapper
  8.  pkgver=1.0.1
  9. -pkgrel=7
  10. +pkgrel=8
  11.  pkgdesc="LPR-to-CUPS wrapper for Brother P-Touch QL-500 labelprinter (metric)"
  12.  url="http://solutions.brother.com/linux/en_us/"
  13.  arch=('i686' 'x86_64')
  14. @@ -14,28 +14,28 @@ else
  15.    depends=('cups' 'ghostscript' 'glibc' 'brother-ql500-lpr')
  16.  fi
  17.  makedepends=('rpmextract')
  18. -source=("http://www.brother.com/pub/bsc/linux/dlf/${_pkgname}-${pkgver}-0.i386.rpm"
  19. +source=("http://www.brother.com/pub/bsc/linux/dlf/${_pkgname}-$pkgver-0.i386.rpm"
  20.          "cupswrapper.install")
  21.  md5sums=('1bc83941faf4a927f62cf96af2c12aee'
  22. -         'b220d6326663cb6b29c6a761a8dbef58' )
  23. -noextract=("${_pkgname}-${pkgver}-0.i386.rpm")
  24. +         '90e88ac4f5a08c871523fb3535774897')
  25. +noextract=("${_pkgname}-$pkgver-0.i386.rpm")
  26.  install='cupswrapper.install'
  27.  
  28. -build() {
  29. -        cd $srcdir
  30. -        rpmextract.sh "${_pkgname}-${pkgver}-0.i386.rpm"
  31. -
  32. -        rm -f ${_pkgname}-${pkgver}-0.i386.rpm
  33. +prepare() {
  34. +        cd "$srcdir"
  35. +        rpmextract.sh "${_pkgname}-$pkgver-0.i386.rpm"
  36. +}
  37.  
  38. +build() {
  39. +        cd "$srcdir"
  40.          mkdir -p usr/share/ || return 1
  41.          rm -rf usr/share/brother
  42.          mv opt/brother usr/share/brother || return 1
  43.          rmdir opt || return 1
  44. -
  45.          sed -i 's|/opt/brother|/usr/share/brother|g' `grep -lr '/opt/brother' ./` || return 1
  46.  }
  47.  
  48.  package() {
  49. -       mv usr $pkgdir/. || return 1
  50. +        cd "$srcdir"
  51. +       mv usr "$pkgdir/." || return 1
  52.  }
  53. -
  54. diff --git a/cupswrapper.install b/cupswrapper.install
  55. index 29a09f2..e3fcd7b 100644
  56. --- a/cupswrapper.install
  57. +++ b/cupswrapper.install
  58. @@ -7,7 +7,7 @@ pre_install() {
  59.  
  60.  post_install() {
  61.         /usr/share/brother/PTouch/ql500/cupswrapper/cupswrapperql500pt1
  62. -       systemctl restart cups
  63. +       systemctl restart org.cups.cupsd.service
  64.  }
RAW Paste Data